direct-io.hg

changeset 14588:681ed46676a6

Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Tue Mar 27 16:45:37 2007 +0100 (2007-03-27)
parents ea0b50ca4999
children d4ddaff75afd
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Tue Mar 27 16:42:47 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Tue Mar 27 16:45:37 2007 +0100
     1.3 @@ -845,6 +845,8 @@ class XendConfig(dict):
     1.4                      sxpr.append([name, s])
     1.5  
     1.6          for xenapi, legacy in XENAPI_CFG_TO_LEGACY_CFG.items():
     1.7 +            if legacy in ('cpus'): # skip this
     1.8 +                continue
     1.9              if self.has_key(xenapi) and self[xenapi] not in (None, []):
    1.10                  if type(self[xenapi]) == bool:
    1.11                      # convert booleans to ints before making an sxp item
    1.12 @@ -858,7 +860,7 @@ class XendConfig(dict):
    1.13          sxpr.append(["memory", int(self["memory_dynamic_max"])/MiB])
    1.14  
    1.15          for legacy in LEGACY_UNSUPPORTED_BY_XENAPI_CFG:
    1.16 -            if legacy in ('domid', 'uuid'): # skip these
    1.17 +            if legacy in ('domid', 'uuid', 'cpus'): # skip these
    1.18                  continue
    1.19              if self.has_key(legacy) and self[legacy] not in (None, []):
    1.20                  sxpr.append([legacy, self[legacy]])