[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Have the sxp parsing cope when the cpus field is a list, which can happen
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # 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 <daniele@xxxxxxxxxxxx>. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> --- tools/python/xen/xend/XendConfig.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) 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: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |