From: Stefan Berger Subject: [PATCH] [XM] Fix the display of the __NULL_LABEL__ Date: Tue, 13 Nov 2007 09:59:48 -0500 Message-ID: <1194965988.18681.4.camel@gsal-3.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-raHpwSVSAsz9knVcGiPy" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-raHpwSVSAsz9knVcGiPy Content-Type: text/plain Content-Transfer-Encoding: 7bit No longer display the __NULL_LABEL__ on the list of labels. Signed-off-by: Stefan Berger --=-raHpwSVSAsz9knVcGiPy Content-Disposition: attachment; filename=xm_list_labels_remove_null_label.diff Content-Type: text/x-patch; name=xm_list_labels_remove_null_label.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/util/security.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/util/security.py +++ 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 --=-raHpwSVSAsz9knVcGiPy Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-raHpwSVSAsz9knVcGiPy--