ia64/xen-unstable

diff tools/python/xen/xm/shutdown.py @ 17404:af1d20b86b02

xm: Fix xm shutdown for xendomains.

If xm shutdown command is passed the domain ID, it should still wait
for the shutdown completion of the domain if passed option --wait.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 08 09:57:37 2008 +0100 (2008-04-08)
parents d04593aa1605
children bd9823ec7097
line diff
     1.1 --- a/tools/python/xen/xm/shutdown.py	Tue Apr 08 09:46:57 2008 +0100
     1.2 +++ b/tools/python/xen/xm/shutdown.py	Tue Apr 08 09:57:37 2008 +0100
     1.3 @@ -144,7 +144,7 @@ def main_all(opts, args):
     1.4  def main_dom(opts, args):
     1.5      if len(args) == 0: opts.err('No domain parameter given')
     1.6      if len(args) >  1: opts.err('No multiple domain parameters allowed')
     1.7 -    dom = args[0]
     1.8 +    dom = sxp.child_value(server.xend.domain(args[0]), 'name')
     1.9      if serverType == SERVER_XEN_API:
    1.10          dom = get_single_vm(dom)
    1.11      mode = shutdown_mode(opts)