fence-agents: RHEL6 - fence_ipmilan: power_wait timeout is not used for power off operation

Marek GrĂ¡c marx at fedoraproject.org
Wed Feb 8 16:33:08 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4aa16fe367f3637f694d1792f40aad6eac3fe447
Commit:        4aa16fe367f3637f694d1792f40aad6eac3fe447
Parent:        9320b2797b90975db220e29493e7b7a1a8fa3b06
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Feb 8 17:31:53 2012 +0100
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Feb 8 17:31:53 2012 +0100

fence_ipmilan: power_wait timeout is not used for power off operation

Patch proposed by Vlastimil Holer.

Resolves: rhbz#787706
---
 fence/agents/ipmilan/ipmilan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index 52be371..46814a8 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -473,7 +473,7 @@ ipmi_off(struct ipmi *ipmi)
 		if (ret != 0)
 			return ret;
 
-		sleep(2);
+		sleep(ipmi->i_power_wait);
 		--retries;
 		ret = ipmi_op(ipmi, ST_STATUS, power_status);
 


More information about the cluster-commits mailing list