WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix error(help) messages in main.py and shutdown.py

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix error(help) messages in main.py and shutdown.py
From: "Yoshinori Katase" <y_katase@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 10:02:13 +0900
Delivery-date: Fri, 13 Jan 2006 01:08:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYX3P0yMImVLyc4TNSGXbJYzHxWBQ==
This patch fixes error(help) messages in main.py and shutdown.py.
1.change the maximun number of argument for xm_reboot
2.unify error message for xm_shutdown

Signed-off-by: Yoshinori Katase <y_katase@xxxxxxxxxxxxxxxx>
Best Regards,
Yoshinori Katase

diff -r 1e1107e3d894 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Wed Jan 11 19:14:27 2006
+++ b/tools/python/xen/xm/main.py       Thu Jan 12 19:08:31 2006
@@ -501,7 +501,7 @@


 def xm_reboot(args):
-    arg_check(args, "reboot", 1, 4)
+    arg_check(args, "reboot", 1, 3)
     from xen.xm import shutdown
     shutdown.main(["shutdown", "-R"] + args)

diff -r 1e1107e3d894 tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py   Wed Jan 11 19:14:27 2006
+++ b/tools/python/xen/xm/shutdown.py   Thu Jan 12 19:08:31 2006
@@ -92,7 +92,9 @@
     shutdown(opts, None, mode, opts.vals.wait)

 def main_dom(opts, args):
-    if len(args) < 1: opts.err('Missing domain')
+    from xen.xm.main import arg_check
+    arg_check(args, "shutdown", 1, 4)
+
     dom = args[0]
     mode = shutdown_mode(opts)
     shutdown(opts, [ dom ], mode, opts.vals.wait)

Attachment: reboot.shutdown.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix error(help) messages in main.py and shutdown.py, Yoshinori Katase <=