From: Christoph Egger Date: Tue, 17 Aug 2010 14:23:36 +0000 (+0100) Subject: xend: remove non-ASCII characters. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11620 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d83eb7f21e37956c1674481b56f0c9181d493304;p=xen.git xend: remove non-ASCII characters. Signed-off-by: Christoph Egger Signed-off-by: Stefano Stabellini committer: Stefano Stabellini --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index cff12e89c3..3ec79d4a67 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -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 + \