This patch fixes "xm reboot" command.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-11 22:18:27 +00:00
1 parent 42996316f5
commit ff3b0e5f48
1 file changed
+1 -2
+1 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.