ia64/xen-unstable

changeset 5183:235ff659f89d

bitkeeper revision 1.1574 (4296fa5erB8OK0RVQ0VDZFNWsbl4Qg)

xm's pincpu has a problem handling the cpu parameter if the cpu number
is more than one digit. This patch fixes it.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri May 27 10:45:50 2005 +0000 (2005-05-27)
parents b91381252d35
children ed6682910675
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Fri May 27 08:36:13 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Fri May 27 10:45:50 2005 +0000
     1.3 @@ -512,7 +512,7 @@ class ProgPincpu(Prog):
     1.4          cpus = []
     1.5          cpumap = 0
     1.6          for c in cpulist.split(','):
     1.7 -            if len(c) > 1:
     1.8 +            if c.find('-') != -1:
     1.9                  (x,y) = c.split('-')
    1.10                  for i in range(int(x),int(y)+1):
    1.11                      cpus.append(int(i))