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

4822a5
From 1dd5cba2056fb7f378f65cc9e109378a3e2e6032 Mon Sep 17 00:00:00 2001
4822a5
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
4822a5
Date: Fri, 5 Jan 2018 17:02:19 +0100
4822a5
Subject: [PATCH] fence_ilo3: default to onoff
4822a5
4822a5
---
4822a5
 fence/agents/ipmilan/fence_ipmilan.py | 4 +---
4822a5
 1 file changed, 1 insertion(+), 3 deletions(-)
4822a5
4822a5
diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
4822a5
index 86caf070..453d7365 100644
4822a5
--- a/fence/agents/ipmilan/fence_ipmilan.py
4822a5
+++ b/fence/agents/ipmilan/fence_ipmilan.py
4822a5
@@ -166,14 +166,12 @@ def main():
4822a5
 	all_opt["power_wait"]["default"] = 2
4822a5
 	if os.path.basename(sys.argv[0]) == "fence_ilo3":
4822a5
 		all_opt["power_wait"]["default"] = "4"
4822a5
-		all_opt["method"]["default"] = "cycle"
4822a5
 		all_opt["lanplus"]["default"] = "1"
4822a5
 	elif os.path.basename(sys.argv[0]) == "fence_ilo4":
4822a5
 		all_opt["lanplus"]["default"] = "1"
4822a5
 
4822a5
 	all_opt["ipport"]["default"] = "623"
4822a5
-	if all_opt["method"]["default"] == "cycle":
4822a5
-		all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
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