# HG changeset patch # User Ewan Mellor # Date 1169721257 0 # Node ID 82c306ad212e3714cf9292611a0ddb8de7a3b5dc # Parent 32f7d3200a995c5ae9b0819c63d51c51e2febe73 Have the sxp parsing cope when the cpus field is a list, which can happen after a reboot. From Daniele Palumbo . Signed-off-by: Ewan Mellor diff -r 32f7d3200a99 -r 82c306ad212e tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Thu Jan 25 10:29:33 2007 +0000 +++ b/tools/python/xen/xend/XendConfig.py Thu Jan 25 10:34:17 2007 +0000 @@ -572,7 +572,7 @@ class XendConfig(dict): # "0-3,^1" -> [0,2,3] # "0-3,^1,1" -> [0,1,2,3] try: - if 'cpus' in cfg: + if 'cpus' in cfg and type(cfg['cpus']) != list: cpus = [] for c in cfg['cpus'].split(','): if c.find('-') != -1: