From: Keir Fraser Date: Tue, 8 Apr 2008 08:57:37 +0000 (+0100) Subject: xm: Fix xm shutdown for xendomains. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14231^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c4dc2c62703fc589553b114133ccd21225b0998;p=xen.git 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 --- diff --git a/tools/python/xen/xm/shutdown.py b/tools/python/xen/xm/shutdown.py index 6903183e9a..2e6294a979 100644 --- a/tools/python/xen/xm/shutdown.py +++ b/tools/python/xen/xm/shutdown.py @@ -144,7 +144,7 @@ def main_all(opts, args): def main_dom(opts, args): if len(args) == 0: opts.err('No domain parameter given') if len(args) > 1: opts.err('No multiple domain parameters allowed') - dom = args[0] + dom = sxp.child_value(server.xend.domain(args[0]), 'name') if serverType == SERVER_XEN_API: dom = get_single_vm(dom) mode = shutdown_mode(opts)