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