[Libvirt-cim] [PATCH] [TEST] Update commom_util.py to call from enumclass not computersystem

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Fri Aug 29 16:14:48 UTC 2008


> @@ -54,7 +54,7 @@
>  def get_cs_instance(domain_name, ip, virt='Xen'):
>      cs = None
>      try:
> -        cs = computersystem.get_cs_class(virt)(ip, domain_name)
> +        cs = enumclass.get_cs_class(virt)(ip, domain_name)
> 
>          if cs.Name != domain_name:
>              logger.error("VS %s is not found" % domain_name)
> @@ -169,7 +169,7 @@
> 
>  def poll_for_state_change(server, virt, dom, exp_state, timeout=30):
>      dom_cs = None
> -    cs = computersystem.get_cs_class(virt)
> +    cs = enumclass.get_cs_class(virt)

Instead of get_cs_class(), I'd use get_typed_class() and remove 
get_cs_class().

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list