Blame SOURCES/bz1906978-fence_gce-default-to-onoff.patch

92e554
From 6f1743a7c34b00b0d1602675598ae22a2a3de6b4 Mon Sep 17 00:00:00 2001
92e554
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
92e554
Date: Thu, 14 Jan 2021 15:11:14 +0100
92e554
Subject: [PATCH] fence_gce: default to onoff
92e554
92e554
---
92e554
 agents/gce/fence_gce.py           | 2 --
92e554
 tests/data/metadata/fence_gce.xml | 2 +-
92e554
 2 files changed, 1 insertion(+), 3 deletions(-)
92e554
92e554
diff --git a/agents/gce/fence_gce.py b/agents/gce/fence_gce.py
92e554
index bf5f5693..84cf3634 100644
92e554
--- a/agents/gce/fence_gce.py
92e554
+++ b/agents/gce/fence_gce.py
92e554
@@ -334,8 +334,6 @@ def main():
92e554
 	define_new_opts()
92e554
 
92e554
 	all_opt["power_timeout"]["default"] = "60"
92e554
-	all_opt["method"]["default"] = "cycle"
92e554
-	all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: cycle)"
92e554
 
92e554
 	options = check_input(device_opt, process_input(device_opt))
92e554
 
92e554
diff --git a/tests/data/metadata/fence_gce.xml b/tests/data/metadata/fence_gce.xml
92e554
index 33478721..77812ffb 100644
92e554
--- a/tests/data/metadata/fence_gce.xml
92e554
+++ b/tests/data/metadata/fence_gce.xml
92e554
@@ -12,7 +12,7 @@ For instructions see: https://cloud.google.com/compute/docs/tutorials/python-gui
92e554
 	</parameter>
92e554
 	<parameter name="method" unique="0" required="0">
92e554
 		<getopt mixed="-m, --method=[method]" />
92e554
-		<content type="select" default="cycle"  >
92e554
+		<content type="select" default="onoff"  >
92e554
 			<option value="onoff" />
92e554
 			<option value="cycle" />
92e554
 		</content>