mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[XM] Fix argument check of the xm reboot command.
Maximum argument of the xm reboot command is three. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
a8fac23038
commit
0e349a1b9b
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||