* [PATCH] remove dom0 name assumption in shutdown.py
@ 2005-11-16 12:18 lists-xen
2005-11-16 12:35 ` Ewan Mellor
0 siblings, 1 reply; 2+ messages in thread
From: lists-xen @ 2005-11-16 12:18 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: shutdown.patch --]
[-- Type: text/plain, Size: 1025 bytes --]
# HG changeset patch
# User jmb@artemis.home.pimb.org
# Node ID 94a21101f5b1672736fe13746c156631dba96b9c
# Parent 9c7aeec94f8a085d69e6a4de9d5a27ebe98c0287
Dom0 might not be called Domain-0, so ask for the name in shutdown.py, instead of hardcoding it
Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
diff -r 9c7aeec94f8a -r 94a21101f5b1 tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py Tue Nov 15 18:46:48 2005
+++ b/tools/python/xen/xm/shutdown.py Wed Nov 16 12:14:34 2005
@@ -22,9 +22,9 @@
import time
from xen.xend.XendClient import server
+from xen.xend import sxp
from xen.xm.opts import *
-DOM0_NAME = 'Domain-0'
DOM0_ID = '0'
gopts = Opts(use="""[options] [DOM]
@@ -54,7 +54,8 @@
def shutdown(opts, doms, mode, wait):
if doms == None: doms = server.xend_domains()
- for x in [DOM0_NAME, DOM0_ID]:
+ dom0_name = sxp.child_value(server.xend_domain(0), 'name')
+ for x in [dom0_name, DOM0_ID]:
if x in doms:
doms.remove(x)
for d in doms:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] remove dom0 name assumption in shutdown.py
2005-11-16 12:18 [PATCH] remove dom0 name assumption in shutdown.py lists-xen
@ 2005-11-16 12:35 ` Ewan Mellor
0 siblings, 0 replies; 2+ messages in thread
From: Ewan Mellor @ 2005-11-16 12:35 UTC (permalink / raw)
To: lists-xen; +Cc: xen-devel
On Wed, Nov 16, 2005 at 01:18:29PM +0100, lists-xen@pimb.org wrote:
> # HG changeset patch
> # User jmb@artemis.home.pimb.org
> # Node ID 94a21101f5b1672736fe13746c156631dba96b9c
> # Parent 9c7aeec94f8a085d69e6a4de9d5a27ebe98c0287
> Dom0 might not be called Domain-0, so ask for the name in shutdown.py, instead of hardcoding it
Thank you! Applied.
Ewan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-16 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 12:18 [PATCH] remove dom0 name assumption in shutdown.py lists-xen
2005-11-16 12:35 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.