[Libvirt-cim] [PATCH 07 of 10] [TEST] Updated devices.py for Association parameter changes

Deepti B. Kalakeri deeptik at linux.vnet.ibm.com
Fri Oct 3 12:39:15 UTC 2008


# HG changeset patch
# User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
# Date 1223027784 25200
# Node ID 84f0b85c6afc80ac8f54dbea8713503e695bdcd1
# Parent  f3b93c41440495aca1d37f6a135ebe0644a3a574
[TEST] Updated devices.py for Association parameter changes

Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>

diff -r f3b93c414404 -r 84f0b85c6afc suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py	Fri Oct 03 02:50:30 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py	Fri Oct 03 02:56:24 2008 -0700
@@ -137,13 +137,10 @@ def device_of(server, key_list):
     return t(server, key_list)
 
 def get_dom_devs(vs_type, ip, dom_name):
-    cn = "ComputerSystem"
-
-    devs = assoc.AssociatorNames(ip, "SystemDevice",
-                                 cn,
-                                 vs_type,
-                                 Name=dom_name,
-                                 CreationClassName= get_typed_class(vs_type, cn))
+    cn = get_typed_class(vs_type, "ComputerSystem")
+    an = get_typed_class(vs_type, "SystemDevice")
+    devs = assoc.AssociatorNames(ip, an, cn, Name=dom_name,
+                                 CreationClassName= cn)
     if devs == None:
         Globals.logger.error("System association failed")
         return 1




More information about the Libvirt-cim mailing list