ia64/xen-unstable

changeset 12139:f895b7c94f10

[XM] Fix TypeError in exception handler if there is no res_label.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Oct 19 17:46:08 2006 +0100 (2006-10-19)
parents 6173a6f5de2b
children f0c7f258c19e
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Thu Oct 19 15:37:16 2006 +0100
     1.2 +++ b/tools/python/xen/xm/create.py	Thu Oct 19 17:46:08 2006 +0100
     1.3 @@ -1146,8 +1146,11 @@ def config_security_check(config, verbos
     1.4          except security.ACMError:
     1.5              print "   %s: DENIED" % (resource)
     1.6              (res_label, res_policy) = security.get_res_label(resource)
     1.7 -            print "   --> res:"+res_label+" ("+res_policy+")"
     1.8 -            print "   --> dom:"+domain_label+" ("+domain_policy+")"
     1.9 +            print "   --> res: %s (%s)" % (str(res_label),
    1.10 +                                           str(res_policy))
    1.11 +            print "   --> dom: %s (%s)" % (str(domain_label),
    1.12 +                                           str(domain_policy))
    1.13 +
    1.14              answer = 0
    1.15  
    1.16      return answer