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

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Oct 27 03:59:20 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1225079524 25200
# Node ID 312f2fd41802726987313f7dbb366aa91923e3e9
# Parent  0f340004e1cd48f5ede60a68283a850ae60c9ebe
[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 0f340004e1cd -r 312f2fd41802 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Fri Oct 24 01:04:38 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Sun Oct 26 20:52:04 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