Skip to contentSkip to conversation

Fix the display of the __NULL_LABEL__

PATCH New Stefan Berger 1 participant 1 message Nov 13, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix the display of the __NULL_LABEL__

No longer display the __NULL_LABEL__ on the list of labels.

xen-unstable.hg/tools/python/xen/util/security.py +5 -0
Index: root/xen-unstable.hg/tools/python/xen/util/security.py
===================================================================
@@ -608,6 +608,11 @@ def list_labels(policy_name, condition):
             label = line.split()[3]
             if label not in labels:
                 labels.append(label)
+
+    f.close()
+    if '__NULL_LABEL__' in labels:
+        labels.remove('__NULL_LABEL__')
+
     return labels
 
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel