diff -r d2ae228a60c3 -r e8629ccc5732
suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Mon Sep 22
11:28:02 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Wed Sep 24
00:25:13 2008 -0700
@@ -23,6 +23,7 @@
cn = get_typed_class(options.virt,
"VirtualSystemSnapshotService")
Name = 'SnapshotService'
- status, host_name, classname = get_host_info(options.ip, options.virt)
- if status != PASS:
- return status
+ status, linux_cs = check_sblim(options.ip, options.virt)
+ if status == PASS:
+ host_name = linux_cs[0].Name
+ classname = linux_cs[0].CreationClassName
This will become linux_cs instead of linux_cs[0]
+ else:
+ status, host_name, classname = get_host_info(options.ip, options.virt)
+ if status != PASS:
+ return status
try:
vs_sservice = enumclass.enumerate_inst(options.ip,
"VirtualSystemSnapshotService",
diff -r d2ae228a60c3 -r e8629ccc5732
suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py Mon
Sep 22 11:28:02 2008 -0700
+++
b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py Wed
Sep 24 00:25:13 2008 -0700
@@ -28,6 +28,7 @@ import sys
import sys
import pywbem
from XenKvmLib import assoc
+from XenKvmLib.common_util import check_sblim
from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS
from CimTest.ReturnCodes import PASS
from XenKvmLib.common_util import try_getinstance
@@ -231,7 +232,12 @@ def main():
conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER,
CIM_PASS), CIM_NS)
ccn = get_typed_class(options.virt, "VirtualSystemSnapshotService")
name = "SnapshotService"
- status, sys_name, sccn = get_host_info(options.ip, options.virt)
+ status, linux_cs = check_sblim(options.ip, options.virt)
+ if status == PASS:
+ sys_name = linux_cs[0].Name
+ sccn = linux_cs[0].CreationClassName
Same here.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com