ia64/xen-unstable

changeset 13615:82c306ad212e

Have the sxp parsing cope when the cpus field is a list, which can happen
after a reboot.

From Daniele Palumbo <daniele@retaggio.net>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Jan 25 10:34:17 2007 +0000 (2007-01-25)
parents 32f7d3200a99
children ee1febe317f7
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Thu Jan 25 10:29:33 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Thu Jan 25 10:34:17 2007 +0000
     1.3 @@ -572,7 +572,7 @@ class XendConfig(dict):
     1.4          #     "0-3,^1"   -> [0,2,3]
     1.5          #     "0-3,^1,1" -> [0,1,2,3]
     1.6          try:
     1.7 -            if 'cpus' in cfg:
     1.8 +            if 'cpus' in cfg and type(cfg['cpus']) != list:
     1.9                  cpus = []
    1.10                  for c in cfg['cpus'].split(','):
    1.11                      if c.find('-') != -1: