mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XM] Fix TypeError in exception handler if there is no res_label.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
03e7cd14f3
commit
4bbf7eafc8
1 file changed
+5
-2
@@ -1146,8 +1146,11 @@ def config_security_check(config, verbose):
|
||||
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
|
||||
|
||||