Fix error(help) messages in main.py and shutdown.py
PATCH 1/1 Fix error(help) messages in main.py and shutdown.py
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 <[email protected]>
Best Regards,
Yoshinori Katase
tools/python/xen/xm/main.py Thu Jan 12 19:08:31 2006 renamed from tools/python/xen/xm/main.py Wed Jan 11 19:14:27 2006 +1 -1
@@ -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)
tools/python/xen/xm/shutdown.py Thu Jan 12 19:08:31 2006 renamed from tools/python/xen/xm/shutdown.py Wed Jan 11 19:14:27 2006 +3 -1
@@ -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)
tools/python/xen/xm/main.py +1 -1
@@ -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)
tools/python/xen/xm/shutdown.py +3 -1
@@ -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)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel