mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
This patch fixes "xm reboot" command.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
This commit is contained in:
1 parent
42996316f5
commit
ff3b0e5f48
1 file changed
+1
-2
@@ -289,13 +289,12 @@ def xm_destroy(args):
|
||||
args.insert(0,"bogus")
|
||||
destroy.main(args)
|
||||
|
||||
# TODO: make reboot do the right thing, right now
|
||||
# reboot and shutdown are exactly the same
|
||||
def xm_reboot(args):
|
||||
arg_check(args,1,"reboot")
|
||||
# ugly hack because the opt parser apparently wants
|
||||
# the subcommand name just to throw it away!
|
||||
args.insert(0,"bogus")
|
||||
args.insert(2,"-R")
|
||||
from xen.xm import shutdown
|
||||
shutdown.main(args)
|
||||
|
||||
|
||||