diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 43f96e3d3c..1fc9137e40 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -333,7 +333,7 @@ def parseConfig(config): else: # remove this element from the list if c[0] == '^': - cpus = [x for x in cpus if x != int(c[1])] + cpus = [x for x in cpus if x != int(c[1:])] else: cpus.append(int(c))