From: Christoph Egger Subject: [PATCH] xend: remove non-ASCII characters Date: Tue, 17 Aug 2010 15:13:06 +0200 Message-ID: <201008171513.06708.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_iroaMshz8O14BSI" Return-path: 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 --Boundary-00=_iroaMshz8O14BSI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Remove non-ASCII characters. This makes xend starting again. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_iroaMshz8O14BSI Content-Type: text/x-diff; charset="us-ascii"; name="xen_tools_xend.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_xend.diff" diff -r 63612398245f tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Tue Aug 17 14:43:40 2010 +0200 +++ b/tools/python/xen/xend/XendConfig.py Tue Aug 17 15:10:17 2010 +0200 @@ -686,12 +686,12 @@ class XendConfig(dict): # Convert scheduling parameters to vcpus_params if 'vcpus_params' not in cfg: cfg['vcpus_params'] = {} -        if not cfg["vcpus_params"].has_key("weight"): -            cfg["vcpus_params"]["weight"] = \ -                int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) -        if not cfg["vcpus_params"].has_key("cap"): -            cfg["vcpus_params"]["cap"] = \ -                int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) + if not cfg["vcpus_params"].has_key("weight"): + cfg["vcpus_params"]["weight"] = \ + int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) + if not cfg["vcpus_params"].has_key("cap"): + cfg["vcpus_params"]["cap"] = \ + int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) # Only extract options we know about. extract_keys = LEGACY_UNSUPPORTED_BY_XENAPI_CFG + \ --Boundary-00=_iroaMshz8O14BSI 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 --Boundary-00=_iroaMshz8O14BSI--