mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
c624ac637e
commit
ece8f4f259
1 file changed
+1
-1
@@ -1309,7 +1309,7 @@ def parse_security_label(security_label):
|
||||
return security_label
|
||||
|
||||
def set_security_label(policy, label):
|
||||
if label != "" and policy != "":
|
||||
if label and policy and label != "" and policy != "":
|
||||
return "%s:%s:%s" % (xsconstants.ACM_POLICY_ID, policy, label)
|
||||
else:
|
||||
return ""
|
||||
|
||||