|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Tidy the error message from getDomains wh
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174409729 0
# Node ID a6d8885931174cf0f91a2a10551abd1ec413d17b
# Parent bea7ff5ebd608160d8258bc7b1cd911aac0d7f62
Tidy the error message from getDomains when using the Xen-API and no domain
is found.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xm/main.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
diff -r bea7ff5ebd60 -r a6d888593117 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Tue Mar 20 16:52:33 2007 +0000
+++ b/tools/python/xen/xm/main.py Tue Mar 20 16:55:29 2007 +0000
@@ -710,7 +710,9 @@ def getDomains(domain_names, state, full
if len(doms) > 0:
return doms
else:
- print "Error: no domains named '%s'" % domain_names
+ print "Error: no domain%s named %s" % \
+ (len(domain_names) > 1 and 's' or '',
+ ', '.join(domain_names))
sys.exit(-1)
else:
return doms_sxp
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Tidy the error message from getDomains when using the Xen-API and no domain,
Xen patchbot-unstable <=
|
|
|
|
|