xend: Fix grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time

we instantiate a new XendConfig.
Signed-off-by: Pascal Bouchareine <pascal@gandi.net>
This commit is contained in:
Keir Fraser committed 2008-02-02 10:53:24 +00:00
1 parent 912c5a1f61
commit 48a61dfcea
1 file changed
+2 -2
+2 -2
View 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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.