From 57782246a43fac8640086c737597b7747120bb6d Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Tue, 21 Mar 2017 13:29:42 +0100 Subject: [PATCH] validate-all: check _validate_input() return code --- fence/agents/lib/fencing.py.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 6d32101..546640e 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -680,7 +680,8 @@ def check_input(device_opt, opt, other_conditions = False): if options["--action"] == "validate-all" and not other_conditions: - _validate_input(options, False) + if not _validate_input(options, False): + fail_usage("validate-all failed") sys.exit(EC_OK) else: _validate_input(options, True)