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

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