mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
3a264694de
commit
2f403612d8
1 file changed
+1
-1
@@ -265,7 +265,7 @@ def xm_brief_list(domsinfo):
|
||||
print 'Name Id Mem(MB) CPU VCPU(s) State Time(s)'
|
||||
for dominfo in domsinfo:
|
||||
if dominfo.has_key("ssidref1"):
|
||||
print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f %s:%(ssidref2)02x/p:%(ssidref1)02x" % dominfo)
|
||||
print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f s:%(ssidref2)02x/p:%(ssidref1)02x" % dominfo)
|
||||
else:
|
||||
print ("%(name)-16s %(dom)3d %(mem)7d %(cpu)3s %(vcpus)5d %(state)5s %(cpu_time)7.1f" % dominfo)
|
||||
|
||||
|
||||