Skip to contentSkip to conversation

cpus configure analysis has easy miss: fixed

PATCH Applied Satoshi Uchida 2 participants 2 messages Jan 13, 2006 – Apr 3, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpus configure analysis has easy miss: fixed

There are easy miss in cpus configuration analysis.

When using remove character '^', cpu number is accepted only single figures.

This patch is fixed above problem.

tools/python/xen/xend/XendDomainInfo.py Fri Jan 13 06:19:23 2006 renamed from tools/python/xen/xend/XendDomainInfo.py Wed Jan 11 19:14:27 2006 +1 -1
diff -r 1e1107e3d894 tools/python/xen/xend/XendDomainInfo.py
@@ -329,7 +329,7 @@
                 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))
 

Satoshi UCHIDA

tools/python/xen/xend/XendDomainInfo.py Fri Jan 13 06:19:23 2006 renamed from tools/python/xen/xend/XendDomainInfo.py Wed Jan 11 19:14:27 2006 +1 -1
diff -r 1e1107e3d894 tools/python/xen/xend/XendDomainInfo.py
@@ -329,6 +329,6 @@
                 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))

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 6 lines · Satoshi Uchida

There are easy miss in cpus configuration analysis.

When using remove character '^', cpu number is accepted only single figures.

This patch is fixed above problem.

Applied, thank you. Sorry this patch has been ignored for so long -- I've only just found it languishing in my inbox.

Please, everyone, re-send patches if they haven't been picked up after a few days -- it's easy to lose patches like this.

Thanks,

Ewan.