[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XM] Fix TypeError in exception handler if there is no res_label.



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID f895b7c94f1044b737d7eeb718caa8da076419ed
# Parent  6173a6f5de2b39027c4f730593aaa82e84521f90
[XM] Fix TypeError in exception handler if there is no res_label.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -r 6173a6f5de2b -r f895b7c94f10 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Thu Oct 19 15:37:16 2006 +0100
+++ b/tools/python/xen/xm/create.py     Thu Oct 19 17:46:08 2006 +0100
@@ -1146,8 +1146,11 @@ def config_security_check(config, verbos
         except security.ACMError:
             print "   %s: DENIED" % (resource)
             (res_label, res_policy) = security.get_res_label(resource)
-            print "   --> res:"+res_label+" ("+res_policy+")"
-            print "   --> dom:"+domain_label+" ("+domain_policy+")"
+            print "   --> res: %s (%s)" % (str(res_label),
+                                           str(res_policy))
+            print "   --> dom: %s (%s)" % (str(domain_label),
+                                           str(domain_policy))
+
             answer = 0
 
     return answer

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.