From: Pascal Bouchareine Subject: [PATCH] leak (?) in XendConfig.py Date: Fri, 1 Feb 2008 14:48:39 +0100 Message-ID: <20080201134839.GA76325@bar.gandi.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The following patch fixes (or breaks) the grow of the LEGACY_UNSUPPORTED_BY_XENAPI_CFG list each time we instanciate a new XendConfig. Signed-off-by: Pascal Bouchareine -- \o/ Pascal Bouchareine - Gandi g 0170393757 15, place de la Nation - 75011 Paris --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="double_keys.patch" diff -r 1b013d10c6d1 tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Mon Jan 28 10:37:08 2008 +0000 +++ b/tools/python/xen/xend/XendConfig.py Fri Feb 01 14:34:50 2008 +0100 @@ -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) --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --n8g4imXOkfNTN/H1--