[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] This patch fixes "xm reboot" command.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 822566f5cfddce3b641b5a1a119dfd592ec69158
# Parent  194f6230b62c3e448b7460611114772d01a1ea2d
This patch fixes "xm reboot" command.

Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>

diff -r 194f6230b62c -r 822566f5cfdd tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Thu Aug 11 22:18:02 2005
+++ b/tools/python/xen/xm/main.py       Thu Aug 11 22:18:27 2005
@@ -289,13 +289,12 @@
     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)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.