xend: Fix refactoring done in CS 15938 in security.py.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
Keir Fraser committed 2007-10-02 09:27:22 +01:00
1 parent c624ac637e
commit ece8f4f259
1 file changed
+1 -1
+1 -1
View File
@@ -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 ""
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.