Skip to contentSkip to conversation

leak (?) in XendConfig.py

PATCH New Pascal Bouchareine 1 participant 1 message Feb 1, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leak (?) in XendConfig.py

The following patch fixes (or breaks) the grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time we instanciate a new XendConfig.

Signature · 2 lines
\o/   Pascal Bouchareine - Gandi 
 g    0170393757           15, place de la Nation - 75011 Paris      
tools/python/xen/xend/XendConfig.py +2 -2
diff -r 1b013d10c6d1 tools/python/xen/xend/XendConfig.py
@@ -501,8 +501,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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel