xend: Fix grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 2 Feb 2008 10:53:24 +0000 (10:53 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 2 Feb 2008 10:53:24 +0000 (10:53 +0000)
we instantiate a new XendConfig.
Signed-off-by: Pascal Bouchareine <pascal@gandi.net>
tools/python/xen/xend/XendConfig.py

index 2c6f3af5af7ccd813aac7cacd66bd2742f0a7601..8e5d258f0218c26f661b2ec2d326643585c846cb 100644 (file)
@@ -514,8 +514,8 @@ class XendConfig(dict):
             int(sxp.child_value(sxp_cfg, "cpu_cap", 0))
 
         # Only extract options we know about.
-        extract_keys = LEGACY_UNSUPPORTED_BY_XENAPI_CFG
-        extract_keys += XENAPI_CFG_TO_LEGACY_CFG.values()
+        extract_keys = LEGACY_UNSUPPORTED_BY_XENAPI_CFG + \
+                  XENAPI_CFG_TO_LEGACY_CFG.values()
         
         for key in extract_keys:
             val = sxp.child_value(sxp_cfg, key)