Blame SOURCES/bz1465436-fence_ipmilan-fix-default-method-inconsistency.patch

4822a5
From 1a6d06adad10e2f3733433617fb0c80409551055 Mon Sep 17 00:00:00 2001
4822a5
From: Marek 'marx' Grac <mgrac@redhat.com>
4822a5
Date: Mon, 3 Jul 2017 10:29:24 +0200
4822a5
Subject: [PATCH] fence_ipmilan: Fix inconsistency between help and manual page
4822a5
 (defalt for --method)
4822a5
4822a5
---
4822a5
 fence/agents/ipmilan/fence_ipmilan.py | 3 ++-
4822a5
 1 file changed, 2 insertions(+), 1 deletion(-)
4822a5
4822a5
diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
4822a5
index 3f334713..6c43b185 100644
4822a5
--- a/fence/agents/ipmilan/fence_ipmilan.py
4822a5
+++ b/fence/agents/ipmilan/fence_ipmilan.py
4822a5
@@ -178,7 +178,8 @@ def main():
4822a5
 		all_opt["lanplus"]["default"] = "1"
4822a5
 
4822a5
 	all_opt["ipport"]["default"] = "623"
4822a5
-	all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
4822a5
+	if all_opt["method"]["default"] == "cycle":
4822a5
+		all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
4822a5
 				    "WARNING! This fence agent might report success before the node is powered off. " \
4822a5
 				    "You should use -m/method onoff if your fence device works correctly with that option."
4822a5