Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 05fc9d0a0a4baf8ad0da2d3ad27dda526db3b75e
Parent: 5d43860ce95d3305d0d92bd25f8fcf2e4a60ce1a
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Aug 22 10:02:25 2011 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Thu Sep 15 13:27:55 2011 +0200
fence_rhevm: change "UP" status to "up" state as the REST-API has
changed
Resolves: rhbz#731167
---
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"