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

[Xen-changelog] [xen-unstable] Don't show the usage message for "domain does not exist" errors.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173556655 0
# Node ID 4e47dc3a6de83577d9354b2edda76f9e2a08f3ae
# Parent  d09da90db166c177113d7641ae919a507bed44d1
Don't show the usage message for "domain does not exist" errors.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r d09da90db166 -r 4e47dc3a6de8 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Sat Mar 10 16:38:18 2007 +0000
+++ b/tools/python/xen/xm/main.py       Sat Mar 10 19:57:35 2007 +0000
@@ -1892,7 +1892,7 @@ def _run_cmd(cmd, cmd_name, args):
             err("Domain '%s' does not exist." % ex.faultString)
         else:
             err(ex.faultString)
-        _usage(cmd_name)
+            _usage(cmd_name)
     except xmlrpclib.ProtocolError, ex:
         if ex.errcode == -1:
             print  >>sys.stderr, (

_______________________________________________
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®.