From: Dan Smith Subject: [PATCH] fix error handler index in xm Date: Tue, 23 Aug 2005 13:15:42 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: "List: Xen Developers" List-Id: xen-devel@lists.xenproject.org --=-=-= This patch fixes a typo in xm's main.py. This fixes the exception thrown when doing, for example, "xm domid" on a non-existent domain. Signed-off-by: Dan Smith --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=xm.patch diff -r 522bc50588ed tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Tue Aug 23 18:27:22 2005 +++ b/tools/python/xen/xm/main.py Tue Aug 23 13:02:58 2005 @@ -666,7 +666,7 @@ sys.exit(1) except XendError, ex: if len(args) > 0: - handle_xend_error(argv[1], args[1], ex) + handle_xend_error(argv[1], args[0], ex) else: print "Unexpected error:", sys.exc_info()[0] print --=-=-= -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com --=-=-= 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 --=-=-=--