Blame SOURCES/bz1519370-fence_ilo3-default-to-onoff.patch

035a21
From 1dd5cba2056fb7f378f65cc9e109378a3e2e6032 Mon Sep 17 00:00:00 2001
035a21
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
035a21
Date: Fri, 5 Jan 2018 17:02:19 +0100
035a21
Subject: [PATCH] fence_ilo3: default to onoff
035a21
035a21
---
035a21
 fence/agents/ipmilan/fence_ipmilan.py | 4 +---
035a21
 1 file changed, 1 insertion(+), 3 deletions(-)
035a21
035a21
diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
035a21
index 86caf070..453d7365 100644
035a21
--- a/fence/agents/ipmilan/fence_ipmilan.py
035a21
+++ b/fence/agents/ipmilan/fence_ipmilan.py
035a21
@@ -166,14 +166,12 @@ def main():
035a21
 	all_opt["power_wait"]["default"] = 2
035a21
 	if os.path.basename(sys.argv[0]) == "fence_ilo3":
035a21
 		all_opt["power_wait"]["default"] = "4"
035a21
-		all_opt["method"]["default"] = "cycle"
035a21
 		all_opt["lanplus"]["default"] = "1"
035a21
 	elif os.path.basename(sys.argv[0]) == "fence_ilo4":
035a21
 		all_opt["lanplus"]["default"] = "1"
035a21
 
035a21
 	all_opt["ipport"]["default"] = "623"
035a21
-	if all_opt["method"]["default"] == "cycle":
035a21
-		all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
035a21
+	all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
035a21
 				    "WARNING! This fence agent might report success before the node is powered off. " \
035a21
 				    "You should use -m/method onoff if your fence device works correctly with that option."
035a21