aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-11-13 10:50:50 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-11-13 10:50:50 +0000
commit3c66521c46e6d3aad96a5270ea160bce2e7a2d0f (patch)
treeff8966ad1e02a23e1cefac0a9069af4278c307f2 /tools
parentbe3d9af19ce74ac274d9c510f335f319f25ea701 (diff)
downloadxen-3c66521c46e6d3aad96a5270ea160bce2e7a2d0f.tar.gz
xen-3c66521c46e6d3aad96a5270ea160bce2e7a2d0f.tar.bz2
xen-3c66521c46e6d3aad96a5270ea160bce2e7a2d0f.zip
xm: display domain id on domain creation
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xm/create.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py
index eb8f3e237c..3620e4968d 100644
--- a/tools/python/xen/xm/create.py
+++ b/tools/python/xen/xm/create.py
@@ -1202,8 +1202,9 @@ def make_domain(opts, config):
except:
server.xend.domain.destroy(dom)
err("Failed to unpause domain %s" % dom)
- opts.info("Started domain %s" % (dom))
- return int(sxp.child_value(dominfo, 'domid'))
+ domid = int(sxp.child_value(dominfo, 'domid'))
+ opts.info("Started domain %s (id=%d)" % (dom, domid))
+ return domid
def get_xauthority():