debuggers.hg
changeset 22061:c82f7f4ee9b7
xend: remove non-ASCII characters.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author | Christoph Egger <Christoph.Egger@amd.com> |
---|---|
date | Tue Aug 17 15:23:36 2010 +0100 (2010-08-17) |
parents | e87c73b32c1b |
children | e5a9221bdd3f |
files | tools/python/xen/xend/XendConfig.py |
line diff
1.1 --- a/tools/python/xen/xend/XendConfig.py Mon Aug 16 15:31:05 2010 +0100 1.2 +++ b/tools/python/xen/xend/XendConfig.py Tue Aug 17 15:23:36 2010 +0100 1.3 @@ -686,12 +686,12 @@ class XendConfig(dict): 1.4 # Convert scheduling parameters to vcpus_params 1.5 if 'vcpus_params' not in cfg: 1.6 cfg['vcpus_params'] = {} 1.7 - if not cfg["vcpus_params"].has_key("weight"): 1.8 - cfg["vcpus_params"]["weight"] = \ 1.9 - int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) 1.10 - if not cfg["vcpus_params"].has_key("cap"): 1.11 - cfg["vcpus_params"]["cap"] = \ 1.12 - int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) 1.13 + if not cfg["vcpus_params"].has_key("weight"): 1.14 + cfg["vcpus_params"]["weight"] = \ 1.15 + int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) 1.16 + if not cfg["vcpus_params"].has_key("cap"): 1.17 + cfg["vcpus_params"]["cap"] = \ 1.18 + int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) 1.19 1.20 # Only extract options we know about. 1.21 extract_keys = LEGACY_UNSUPPORTED_BY_XENAPI_CFG + \