mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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>
This commit is contained in:
1 parent
67b5d35497
commit
7c4dc2c627
1 file changed
+1
-1
@@ -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)
|
||||
|
||||