[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.