[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xm: Fix xm shutdown for xendomains.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207645057 -3600
# Node ID af1d20b86b02bf463690e8af61e77ddf169c4c6c
# Parent  324f772239a7062bed404fac02adefa817bf10ca
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@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/shutdown.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 324f772239a7 -r af1d20b86b02 tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py   Tue Apr 08 09:46:57 2008 +0100
+++ b/tools/python/xen/xm/shutdown.py   Tue Apr 08 09:57:37 2008 +0100
@@ -144,7 +144,7 @@ def main_dom(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)  

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.