Gitweb:
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=b0c42d287f7...
Commit: b0c42d287f7f749794a61796f016c2e56148d64b
Parent: 432045a49e4930e6f1c406f6f279c608655dac04
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Thu Oct 11 15:46:47 2012 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Thu Oct 11 15:46:47 2012 +0200
fence_rhevm: Fix API changes in RHEV-M
Resolves: rhbz#863567
---
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 f7854f2..b05da55 100755
--- a/fence/agents/rhevm/fence_rhevm.py
+++ b/fence/agents/rhevm/fence_rhevm.py
@@ -11,7 +11,7 @@ REDHAT_COPYRIGHT=""
BUILD_DATE=""
#END_VERSION_GENERATION
-re_get_id = re.compile("<vm id=\"(.*?)\"", re.IGNORECASE);
+re_get_id = re.compile("<vm( .*)? id=\"(.*?)\"", re.IGNORECASE);
re_status = re.compile("<state>(.*?)</state>", re.IGNORECASE);
re_get_name = re.compile("<name>(.*?)</name>", re.IGNORECASE);
@@ -28,7 +28,7 @@ def get_power_status(conn, options):
# Unable to obtain ID needed to access virtual machine
fail(EC_STATUS)
- options["id"] = result.group(1);
+ options["id"] = result.group(2);
re_status.search(res)
result = re_status.search(res)