Blob Blame History Raw
From 8411a5c5ef335a22f80244c81afc1aa2430cdb53 Mon Sep 17 00:00:00 2001
From: Marek 'marx' Grac <mgrac@redhat.com>
Date: Thu, 18 Jun 2015 18:38:42 +0200
Subject: [PATCH 2/3] fence_emerson: Add power-wait=5seconds because device is
 too fast

Resolves: rhbz#1171732
---
 fence/agents/emerson/fence_emerson.py | 1 +
 tests/data/metadata/fence_emerson.xml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/fence/agents/emerson/fence_emerson.py b/fence/agents/emerson/fence_emerson.py
index 1ef911b..af7f132 100644
--- a/fence/agents/emerson/fence_emerson.py
+++ b/fence/agents/emerson/fence_emerson.py
@@ -50,6 +50,7 @@ def main():
 
 	atexit.register(atexit_handler)
 
+	all_opt["power_wait"]["default"] = "5"
 	options = check_input(device_opt, process_input(device_opt))
 
 	docs = {}
diff --git a/tests/data/metadata/fence_emerson.xml b/tests/data/metadata/fence_emerson.xml
index 3b49b56..1aa5474 100644
--- a/tests/data/metadata/fence_emerson.xml
+++ b/tests/data/metadata/fence_emerson.xml
@@ -139,7 +139,7 @@
 	</parameter>
 	<parameter name="power_wait" unique="0" required="0">
 		<getopt mixed="--power-wait=[seconds]" />
-		<content type="string" default="0"  />
+		<content type="string" default="5"  />
 		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
 	</parameter>
 	<parameter name="shell_timeout" unique="0" required="0">
-- 
1.9.3