# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1219987072 25200
# Node ID 6c04dcf4211c9d244a77595ce207c78af7899f09
# Parent a9978826a31d881a7fcaa2ca277a44322511a624
[TEST] Update commom_util.py to call from enumclass not computersystem
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r a9978826a31d -r 6c04dcf4211c suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Aug 27 01:04:31 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Thu Aug 28 22:17:52 2008 -0700
@@ -28,7 +28,7 @@
from XenKvmLib.test_xml import *
from XenKvmLib.test_doms import *
from XenKvmLib import vsms
-from XenKvmLib import computersystem
+from XenKvmLib import enumclass
from XenKvmLib import enumclass
from pywbem.cim_obj import CIMInstanceName
from XenKvmLib.devices import CIM_Instance
@@ -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)
try:
for i in range(1, (timeout + 1)):