mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix xm info handling of empty strings (fix bugzilla bug #216)
Signed-off-by: Steven Hand <steven@xensource.com>
This commit is contained in:
1 parent
cd75a1b28f
commit
b1f3138ed7
1 file changed
+4
-1
@@ -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):
|
||||
|
||||