From: "Satoshi Uchida" Subject: [PATCH] cpus configure analysis has easy miss: fixed Date: Fri, 13 Jan 2006 11:23:20 +0900 Message-ID: <00aa01c617e8$5240fc80$4c87380a@ad.spf.cl.nec.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00AB_01C61833.C228A480" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_00AB_01C61833.C228A480 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. diff -r 1e1107e3d894 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Wed Jan 11 19:14:27 2006 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Jan 13 06:19:23 2006 @@ -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 ------=_NextPart_000_00AB_01C61833.C228A480 Content-Type: application/octet-stream; name="XendDomainInfo.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="XendDomainInfo.patch" diff -r 1e1107e3d894 tools/python/xen/xend/XendDomainInfo.py=0A= --- a/tools/python/xen/xend/XendDomainInfo.py Wed Jan 11 19:14:27 2006=0A= +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Jan 13 06:19:23 2006=0A= @@ -329,6 +329,6 @@=0A= else:=0A= # remove this element from the list =0A= if c[0] =3D=3D '^':=0A= - cpus =3D [x for x in cpus if x !=3D int(c[1])]=0A= + cpus =3D [x for x in cpus if x !=3D int(c[1:])]=0A= else:=0A= cpus.append(int(c))=0A= ------=_NextPart_000_00AB_01C61833.C228A480 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_00AB_01C61833.C228A480--