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