# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1207033425 -19800
# Node ID 9b12b065560215945ce8175fad6d34136069bd06
# Parent b44edf769748143fc161a8efc980203533a9cac8
[TEST][Fixing]: Fixing the enumerate_inst() of enumclass.py.
Signed-off-by: Deepti B. Kalakeri<dkalaker(a)in.ibm.com>
diff -r b44edf769748 -r 9b12b0655602 suites/libvirt-cim/lib/XenKvmLib/enumclass.py
--- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Tue Apr 01 12:21:42 2008 +0530
+++ b/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Tue Apr 01 12:33:45 2008 +0530
@@ -219,8 +219,7 @@ def enumerate_inst(server, classname, vi
classname = "%s" % classname
new_classname = classname.split('_')
if len(new_classname) == 2:
- classname = classname[1]
-
+ classname = new_classname[1]
classname = eval(get_typed_class(virt, classname))
instances = []
conn = pywbem.WBEMConnection('http://%s' % server,
@@ -243,7 +242,7 @@ def enumerate(server, basename, keys, vi
basename = new_base[1]
classname = eval(get_typed_class(virt, basename))
- instances = enumerate_inst(server, classname)
+ instances = enumerate_inst(server, classname, virt)
list = []