[Libvirt-cim] [PATCH] [TEST] Update common_util.py to call new EnumInstances
Deepti B Kalakeri
deeptik at linux.vnet.ibm.com
Tue Oct 14 11:25:16 UTC 2008
+1 for me.
yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1223968768 25200
> # Node ID 1fe0fcbda10f32261c3f64f8d77ab4639c2b77ae
> # Parent c7eaf17bd591f313b93ff2b2087cee11b25789e0
> [TEST] Update common_util.py to call new EnumInstances
>
> Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
>
> diff -r c7eaf17bd591 -r 1fe0fcbda10f suites/libvirt-cim/lib/XenKvmLib/common_util.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Fri Oct 10 03:08:12 2008 -0700
> +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Tue Oct 14 00:19:28 2008 -0700
> @@ -217,7 +217,8 @@ def get_host_info(server, virt="Xen"):
> # sblim-base-provider provider related changes
>
> ret, linux_cs = check_sblim(server)
> - host_info = enumclass.enumerate(server, 'HostSystem', keys, virt)
> + hs_class = get_typed_class(server, 'HostSystem')
> + host_info = enumclass.EnumInstances(server, hs_class)
> if ret == PASS:
> host_sys = linux_cs
> elif len(host_info) == 1:
> @@ -499,8 +500,9 @@ def check_sblim(server, virt='Xen'):
> Globals.CIM_NS = 'root/cimv2'
> keys = ['Name', 'CreationClassName']
> linux_cs = None
> + cs = 'Linux_ComputerSystem'
> try:
> - linux = enumclass.enumerate(server, 'ComputerSystem', keys, 'Linux')
> + linux = enumclass.EnumInstances(server, cs)
> if len(linux) == 1:
> status = PASS
> linux_cs = linux[0]
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>
More information about the Libvirt-cim
mailing list