cluster: RHEL55 - fence-agents: Add missing state handling to fence_virsh
Lon Hohberger
lon at fedoraproject.org
Mon Dec 21 19:42:14 UTC 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d83cb1da1c62bf8837a93a3f8dac35df8ece41da
Commit: d83cb1da1c62bf8837a93a3f8dac35df8ece41da
Parent: 7b720e011417aad8a1b1717d59ac1ba943e01671
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Mon Dec 21 11:25:12 2009 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Dec 21 14:39:39 2009 -0500
fence-agents: Add missing state handling to fence_virsh
Resolves: rhbz#544664
Signed-off-by: Lon Hohberger <lhh at redhat.com>
Signed-off-by: Marek 'marx' Grac <mgrac at redhat.com>
---
fence/agents/virsh/fence_virsh.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/virsh/fence_virsh.py b/fence/agents/virsh/fence_virsh.py
index 057a7c6..7913cd2 100644
--- a/fence/agents/virsh/fence_virsh.py
+++ b/fence/agents/virsh/fence_virsh.py
@@ -37,7 +37,7 @@ def get_outlets_status(conn, options):
if ((fa_status==0) and (domain.group(1).lower()=="id") and (domain.group(2).lower()=="name")):
fa_status=1
elif (fa_status==1):
- result[domain.group(2)]=("",(domain.group(3).lower() in ["running","blocked"] and "on" or "off"))
+ result[domain.group(2)]=("",(domain.group(3).lower() in ["running","blocked","idle","no state","paused"] and "on" or "off"))
return result
def get_power_status(conn, options):
More information about the cluster-commits
mailing list