[XM] Fix argument check of the xm reboot command.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 29 Jun 2006 13:25:07 +0000 (14:25 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 29 Jun 2006 13:25:07 +0000 (14:25 +0100)
Maximum argument of the xm reboot command is three.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/main.py

index 6e58856e5a887f2223b0e50bba1254c44644074b..9b8d42fa97e9a768e6a68e5eee3bdad07e0c1dc9 100644 (file)
@@ -565,7 +565,7 @@ def xm_vcpu_list(args):
 
 
 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)