[Libvirt-cim] [PATCH] [TEST] In cim_state_change(), return FAIL since status isn't set yet

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Thu Mar 12 20:51:23 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1236890998 25200
# Node ID 0529bffff3f4a6f739e2589e42f5406cc1296b51
# Parent  ab10caadc452bc5413f7776a978214241b6ae2f9
[TEST] In cim_state_change(), return FAIL since status isn't set yet.

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r ab10caadc452 -r 0529bffff3f4 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Thu Mar 12 13:45:00 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Thu Mar 12 13:49:58 2009 -0700
@@ -610,7 +610,7 @@
         keys = { 'Name' : self.domain_name, 'CreationClassName' : cs_class }
         cs = GetInstance(server, cs_class, keys)
         if cs is None or cs.Name != self.domain_name:
-            return status
+            return FAIL 
 
         try:
             req_state_change = pywbem.cim_types.Uint16(req_state)




More information about the Libvirt-cim mailing list