# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1219824097 25200
# Node ID bbc51fedc22665157ea83df962bb0866ec1b3ae6
# Parent 868a63afd7a8089124a3fc1b94aefbd5d958947b
[TEST] Update common_util.py to reflect hostsystem changes
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 868a63afd7a8 -r bbc51fedc226 suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Aug 27 00:58:07 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Aug 27 01:01:37 2008 -0700
@@ -29,7 +29,7 @@ from XenKvmLib.test_doms import *
from XenKvmLib.test_doms import *
from XenKvmLib import vsms
from XenKvmLib import computersystem
-from XenKvmLib import hostsystem
+from XenKvmLib import enumclass
from pywbem.cim_obj import CIMInstanceName
from XenKvmLib.devices import CIM_Instance
from XenKvmLib.classes import get_typed_class
@@ -196,8 +196,9 @@ def get_host_info(server, virt="Xen"):
status = PASS
host_name = ''
host_ccn = ''
+ keys = ['Name', 'CreationClassName']
try :
- host_sys = hostsystem.enumerate(server, virt)
+ host_sys = enumclass.enumerate(server, 'HostSystem', keys, virt)
if host_sys[0].Name == "":
logger.error("HostName seems to be empty")
status = FAIL