aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-11 22:18:27 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-11 22:18:27 +0000
commitff3b0e5f485aa253edb4a68eecab9cced8813a8e (patch)
treeb0c3367c6d8a2311f293f0faa09d5932096514d9
parent42996316f55b1ba88facded4b9d46278720b8e11 (diff)
downloadxen-ff3b0e5f485aa253edb4a68eecab9cced8813a8e.tar.gz
xen-ff3b0e5f485aa253edb4a68eecab9cced8813a8e.tar.bz2
xen-ff3b0e5f485aa253edb4a68eecab9cced8813a8e.zip
This patch fixes "xm reboot" command.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
-rw-r--r--tools/python/xen/xm/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py
index cbdbb1c0e8..d1a7fd4f57 100644
--- a/tools/python/xen/xm/main.py
+++ b/tools/python/xen/xm/main.py
@@ -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)