[Libvirt-cim] [PATCH 1 of 3] [TEST] Fix cim_define() for LXC

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Fri Oct 10 20:30:12 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1223669821 25200
# Node ID 419ea0c270bf4be5be590e68edc96f0311df7d03
# Parent  1b152e5e9a47ec932b5c18bb26f226d5896b5432
[TEST] Fix cim_define() for LXC

LXC guests only support Memory and Disk RASDS currently.

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 1b152e5e9a47 -r 419ea0c270bf suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Thu Oct 09 08:54:35 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Fri Oct 10 13:17:01 2008 -0700
@@ -482,7 +482,7 @@
         service = vsms.get_vsms_class(self.virt)(ip)
         sys_settings = str(self.vssd)
         if self.virt == 'LXC' and const.LXC_netns_support is False:
-            res_settings = [str(self.dasd), str(self.pasd), str(self.masd)]
+            res_settings = [str(self.dasd), str(self.masd)]
         else:
             res_settings = [str(self.dasd), str(self.nasd),
                             str(self.pasd), str(self.masd)]




More information about the Libvirt-cim mailing list