ia64/xen-unstable

changeset 9576:24cc62b429f0

Fix cpus string parsing, wrt use of ^ to remove elements.

Patch from Satoshi Uchida <s-uchida@ap.jp.nec.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Apr 03 18:39:21 2006 +0100 (2006-04-03)
parents b3751c780aa5
children 95552dc317cf
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Apr 03 18:32:43 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Apr 03 18:39:21 2006 +0100
     1.3 @@ -333,7 +333,7 @@ def parseConfig(config):
     1.4                  else:
     1.5                      # remove this element from the list 
     1.6                      if c[0] == '^':
     1.7 -                        cpus = [x for x in cpus if x != int(c[1])]
     1.8 +                        cpus = [x for x in cpus if x != int(c[1:])]
     1.9                      else:
    1.10                          cpus.append(int(c))
    1.11