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

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Fri Mar 13 05:34:20 UTC 2009


+1.

Kaitlin Rupert wrote:
> # 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)
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>   

-- 
Thanks and Regards,
Deepti B. Kalakeri
IBM Linux Technology Center
deeptik at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list