Blob Blame History Raw
From 1dd5cba2056fb7f378f65cc9e109378a3e2e6032 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Fri, 5 Jan 2018 17:02:19 +0100
Subject: [PATCH] fence_ilo3: default to onoff

---
 fence/agents/ipmilan/fence_ipmilan.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
index 86caf070..453d7365 100644
--- a/fence/agents/ipmilan/fence_ipmilan.py
+++ b/fence/agents/ipmilan/fence_ipmilan.py
@@ -166,14 +166,12 @@ def main():
 	all_opt["power_wait"]["default"] = 2
 	if os.path.basename(sys.argv[0]) == "fence_ilo3":
 		all_opt["power_wait"]["default"] = "4"
-		all_opt["method"]["default"] = "cycle"
 		all_opt["lanplus"]["default"] = "1"
 	elif os.path.basename(sys.argv[0]) == "fence_ilo4":
 		all_opt["lanplus"]["default"] = "1"
 
 	all_opt["ipport"]["default"] = "623"
-	if all_opt["method"]["default"] == "cycle":
-		all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
+	all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)\n" \
 				    "WARNING! This fence agent might report success before the node is powered off. " \
 				    "You should use -m/method onoff if your fence device works correctly with that option."