Blame SOURCES/bz1171732-2-fence_emerson.patch

44709c
From 8411a5c5ef335a22f80244c81afc1aa2430cdb53 Mon Sep 17 00:00:00 2001
44709c
From: Marek 'marx' Grac <mgrac@redhat.com>
44709c
Date: Thu, 18 Jun 2015 18:38:42 +0200
44709c
Subject: [PATCH 2/3] fence_emerson: Add power-wait=5seconds because device is
44709c
 too fast
44709c
44709c
Resolves: rhbz#1171732
44709c
---
44709c
 fence/agents/emerson/fence_emerson.py | 1 +
44709c
 tests/data/metadata/fence_emerson.xml | 2 +-
44709c
 2 files changed, 2 insertions(+), 1 deletion(-)
44709c
44709c
diff --git a/fence/agents/emerson/fence_emerson.py b/fence/agents/emerson/fence_emerson.py
44709c
index 1ef911b..af7f132 100644
44709c
--- a/fence/agents/emerson/fence_emerson.py
44709c
+++ b/fence/agents/emerson/fence_emerson.py
44709c
@@ -50,6 +50,7 @@ def main():
44709c
 
44709c
 	atexit.register(atexit_handler)
44709c
 
44709c
+	all_opt["power_wait"]["default"] = "5"
44709c
 	options = check_input(device_opt, process_input(device_opt))
44709c
 
44709c
 	docs = {}
44709c
diff --git a/tests/data/metadata/fence_emerson.xml b/tests/data/metadata/fence_emerson.xml
44709c
index 3b49b56..1aa5474 100644
44709c
--- a/tests/data/metadata/fence_emerson.xml
44709c
+++ b/tests/data/metadata/fence_emerson.xml
44709c
@@ -139,7 +139,7 @@
44709c
 	</parameter>
44709c
 	<parameter name="power_wait" unique="0" required="0">
44709c
 		<getopt mixed="--power-wait=[seconds]" />
44709c
-		<content type="string" default="0"  />
44709c
+		<content type="string" default="5"  />
44709c
 		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
44709c
 	</parameter>
44709c
 	<parameter name="shell_timeout" unique="0" required="0">
44709c
-- 
44709c
1.9.3
44709c