WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] xensv Node details TypeError: int argument required

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xensv Node details TypeError: int argument required
From: Damian Soto <damian.soto@xxxxxxxxx>
Date: Fri, 20 May 2005 10:37:59 +0200
Delivery-date: Fri, 20 May 2005 08:37:28 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YsYDipEVmJoH4EsG8KsflwV0IiuTXx39flpMbKtEWFvD2X9AmdIVCHkhQqdm07wNIuYBrXpC12L+YJwFDtHy6LhLezk2i1FLho7d+cYERk44E3FzZFRCSGXNPCu37aAm5YCVpURgjhF3HXr4OXYGHsCU0NQxio1d3hDz8ycpMPg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Damian Soto <damian.soto@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
When I click on Node Detail  a TypeError exeptions is generated.

/usr/lib/python/xen/sv/util.py, line 121 in hyperthreadFormatter
119def hyperthreadFormatter( threads ):
120  if int( threads ) > 1:
121    return "Yes (%d)" % threads
122  else:
Locals
threads '2'
Globals
hyperthreadFormatter    
function hyperthreadFormatter in file /usr/lib/python/xen/sv/util.py at line 119

exceptions.TypeError: int argument required

Adding the missing int conversion fixes the error.
 
--
Damian Soto
damian.soto@xxxxxxxxx


--- xen-unstable-install/install/usr/lib/python/xen/sv/util.py 
2005-05-20 04:47:16.000000000 +0200
+++ /usr/lib/python/xen/sv/util.py      2005-05-20 10:09:41.530842000 +0200
@@ -118,6 +118,6 @@

 def hyperthreadFormatter( threads ):
     if int( threads ) > 1:
-        return "Yes (%d)" % threads
+        return "Yes (%d)" % int(threads)
     else:
         return "No"

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] xensv Node details TypeError: int argument required, Damian Soto <=