ia64/xen-unstable
changeset 6102:3229cda2d6f1
The attached patch fixes the xm list command, which very
recently stopped working if security was enabled.
xm list fails if security is enabled because of a single
additional "%" character in a print.
Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
recently stopped working if security was enabled.
xm list fails if security is enabled because of a single
additional "%" character in a print.
Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Thu Aug 11 08:55:47 2005 +0000 (2005-08-11) |
parents | 2caa8e1e2111 |
children | 464c521c6f0e |
files | tools/python/xen/xm/main.py |
line diff
1.1 --- a/tools/python/xen/xm/main.py Wed Aug 10 21:55:36 2005 +0000 1.2 +++ b/tools/python/xen/xm/main.py Thu Aug 11 08:55:47 2005 +0000 1.3 @@ -265,7 +265,7 @@ def xm_brief_list(domsinfo): 1.4 print 'Name Id Mem(MB) CPU VCPU(s) State Time(s)' 1.5 for dominfo in domsinfo: 1.6 if dominfo.has_key("ssidref1"): 1.7 - print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f %s:%(ssidref2)02x/p:%(ssidref1)02x" % dominfo) 1.8 + print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f s:%(ssidref2)02x/p:%(ssidref1)02x" % dominfo) 1.9 else: 1.10 print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f" % dominfo) 1.11