ia64/xen-unstable

changeset 6132:822566f5cfdd

This patch fixes "xm reboot" command.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Aug 11 22:18:27 2005 +0000 (2005-08-11)
parents 194f6230b62c
children 7dc610b0d1ba ab3813d38b20
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Aug 11 22:18:02 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Aug 11 22:18:27 2005 +0000
     1.3 @@ -289,13 +289,12 @@ def xm_destroy(args):
     1.4      args.insert(0,"bogus")
     1.5      destroy.main(args)
     1.6              
     1.7 -# TODO: make reboot do the right thing, right now
     1.8 -# reboot and shutdown are exactly the same
     1.9  def xm_reboot(args):
    1.10      arg_check(args,1,"reboot")
    1.11      # ugly hack because the opt parser apparently wants
    1.12      # the subcommand name just to throw it away!
    1.13      args.insert(0,"bogus")
    1.14 +    args.insert(2,"-R")
    1.15      from xen.xm import shutdown
    1.16      shutdown.main(args)
    1.17