cluster: RHEL57 - fence_rhevm: change "UP" status to "up" state as the REST-API has changed
Lon Hohberger
lon at fedoraproject.org
Wed Jan 18 17:52:06 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=a95c78f44a9b819eab37f541fde9f5784dd9f9c5
Commit: a95c78f44a9b819eab37f541fde9f5784dd9f9c5
Parent: 7cb765d530c34dc39cb0e6ed36641f3feafd4c6d
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Mon Aug 22 10:02:25 2011 +0200
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Wed Jan 18 12:40:07 2012 -0500
fence_rhevm: change "UP" status to "up" state as the REST-API has changed
Resolves: rhbz#782833
---
fence/agents/rhevm/fence_rhevm.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
index 1cb8d00..c9625a2 100755
--- a/fence/agents/rhevm/fence_rhevm.py
+++ b/fence/agents/rhevm/fence_rhevm.py
@@ -12,7 +12,7 @@ BUILD_DATE=""
#END_VERSION_GENERATION
re_get_id = re.compile("<vm id=\"(.*?)\"", re.IGNORECASE);
-re_status = re.compile("<status>(.*?)</status>", re.IGNORECASE);
+re_status = re.compile("<state>(.*?)</state>", re.IGNORECASE);
re_get_name = re.compile("<name>(.*?)</name>", re.IGNORECASE);
def get_power_status(conn, options):
@@ -40,7 +40,7 @@ def get_power_status(conn, options):
else:
status = result.group(1)
- if (status == "UP"):
+ if (status == "up"):
return "on"
else:
return "off"
More information about the cluster-commits
mailing list