From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ewan Mellor Subject: Re: [PATCH] Fixing bug/typo in main.py Date: Thu, 12 Jan 2006 12:26:55 +0000 Message-ID: <20060112122655.GC18315@leeni.uk.xensource.com> References: <20060111072028.395851C004@mail1-sv.soft.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060111072028.395851C004@mail1-sv.soft.fujitsu.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: Yoshinori Katase Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Jan 11, 2006 at 04:21:21PM +0900, Yoshinori Katase wrote: > This patch fixes a typo of main.py. > 1.xm reboot help is shown only 3 arguments. What you've done here isn't right. xm reboot is redirected through xm shutdown, but that's just a messy implementation detail. xm shutdown -H means shutdown and don't restart regardless of configuration to the contrary -- xm reboot -H therefore does not make any sense. xm shutdown -R is exactly the same as xm reboot, and so xm reboot -R does not make any sense either. We ought to change the arg_check for xm_reboot to allow a maximum of 3 arguments, but better would be to rewrite shutdown.py so that the handling of the call to the server was separate from the argument handling and this mess was sorted out properly. Any volunteers? Thanks, Ewan.