Fix xm info handling of empty strings (fix bugzilla bug #216)

Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
shand@ubuntu.eng.hq.xensource.com committed 2005-09-09 15:11:18 -08:00
1 parent cd75a1b28f
commit b1f3138ed7
1 file changed
+4 -1
+4 -1
View File
@@ -450,7 +450,10 @@ def xm_info(args):
info = server.xend_node()
for x in info[1:]:
print "%-23s:" % x[0], x[1]
if len(x) < 2:
print "%-23s: (none)" % x[0]
else:
print "%-23s:" % x[0], x[1]
# TODO: remove as soon as console server shows up
def xm_console(args):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.