Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > d236c5da97a239a1b6991cfba2865b66 > files > 91

cman-2.0.115-68.el5_6.1.src.rpm

commit d83cb1da1c62bf8837a93a3f8dac35df8ece41da
Author: Lon Hohberger <lhh@redhat.com>
Date:   Mon Dec 21 11:25:12 2009 -0500

    fence-agents: Add missing state handling to fence_virsh
    
    Resolves: rhbz#544664
    
    Signed-off-by: Lon Hohberger <lhh@redhat.com>
    Signed-off-by: Marek 'marx' Grac <mgrac@redhat.com>

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):