Mailing List Archive

xensv Node details TypeError: int argument required
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@gmail.com


--- 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@lists.xensource.com
http://lists.xensource.com/xen-users