WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Tidy the error message from getDomains wh

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Tidy the error message from getDomains when using the Xen-API and no domain
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2007 13:30:19 -0700
Delivery-date: Tue, 20 Mar 2007 13:30:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=