cluster: RHEL57 - fence-agents: Fence_rhevm needs to change "RUNNING" status to "UP" status as the REST-API has changed.

Lon Hohberger lon at fedoraproject.org
Tue Mar 22 00:19:26 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=434b08025485c1d7acfa03fc7d14fdb0e54a6c74
Commit:        434b08025485c1d7acfa03fc7d14fdb0e54a6c74
Parent:        31000582619959bf3e596bd776cc75fedc8cadf2
Author:        Brandon Perkins <bperkins at redhat.com>
AuthorDate:    Mon Mar 7 12:05:30 2011 -0500
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Mar 21 20:12:05 2011 -0400

fence-agents: Fence_rhevm needs to change "RUNNING" status to "UP" status as the REST-API has changed.

Resolves: rhbz#681670

Signed-off-by: Marcus Barrow <mbarrow at redhat.com>
Reviewed-by: Lon Hohberger <lhh at redhat.com>
---
 fence/agents/rhevm/fence_rhevm.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
index c63251a..323ccf8 100755
--- a/fence/agents/rhevm/fence_rhevm.py
+++ b/fence/agents/rhevm/fence_rhevm.py
@@ -40,7 +40,7 @@ def get_power_status(conn, options):
 	else:
 		status = result.group(1)
 
-	if (status == "RUNNING"):
+	if (status == "UP"):
 		return "on"
 	else:
 		return "off"


More information about the cluster-commits mailing list