From: Masaki Kanno Subject: Re: [BUGFIX][ACM] fix return code in acm-related xm scripts Date: Mon, 11 Sep 2006 17:20:17 +0900 Message-ID: <30C6D57B1D7CFEkanno.masaki@jp.fujitsu.com> References: <4501A812.80600@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4501A812.80600@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Reiner Sailer , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Reiner, It's very nice of you to make patch. I have a small comment. I think that the following correction is necessary. diff -r 7acaba46e15e tools/python/xen/xm/getlabel.py --- a/tools/python/xen/xm/getlabel.py Fri Sep 08 15:46:54 2006 -0700 +++ b/tools/python/xen/xm/getlabel.py Mon Sep 11 16:49:42 2006 +0900 @@ -47,7 +45,7 @@ def get_resource_label(resource): label = access_control[resource][1] print "policy="+policy+",label="+label else: - print "Resource not labeled" + security.err("Resource not labeled") Best regards, Kan >This patch fixes return codes for the acm-related Xen management scripts >(error conditions) and addresses minor issues that 'pycheck' complains >about. It is tested with xm-test and by manually running the xm commands. > >Signed-off by: Reiner Sailer > > >-------------------------------text/plain------------------------------- >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel