Skip to contentSkip to conversation

Fix argument check of xm reboot command (1)

PATCH New Masaki Kanno 1 participant 1 message Jun 29, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix argument check of xm reboot command (1)

Hi,

This patch fixes argument check of the xm reboot command. I think that maximum argument of the xm reboot command is three.

- reboot_help = "reboot <DomId> [-w][-a] Reboot a domain"

Best regards,
Kan

tools/python/xen/xm/main.py +1 -1
diff -r 4b51d081378d tools/python/xen/xm/main.py
@@ -556,7 +556,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)
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel