xend: remove non-ASCII characters.
authorChristoph Egger <Christoph.Egger@amd.com>
Tue, 17 Aug 2010 14:23:36 +0000 (15:23 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Tue, 17 Aug 2010 14:23:36 +0000 (15:23 +0100)
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>

tools/python/xen/xend/XendConfig.py

index cff12e89c3073f4db830fac2522e5100877b02e9..3ec79d4a67ae8459ff7e810fb7633ab57d0103c2 100644 (file)
@@ -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 + \