direct-io.hg

changeset 14336:4e47dc3a6de8

Don't show the usage message for "domain does not exist" errors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Mar 10 19:57:35 2007 +0000 (2007-03-10)
parents d09da90db166
children 4dd4c285481a
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Sat Mar 10 16:38:18 2007 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Sat Mar 10 19:57:35 2007 +0000
     1.3 @@ -1892,7 +1892,7 @@ def _run_cmd(cmd, cmd_name, args):
     1.4              err("Domain '%s' does not exist." % ex.faultString)
     1.5          else:
     1.6              err(ex.faultString)
     1.7 -        _usage(cmd_name)
     1.8 +            _usage(cmd_name)
     1.9      except xmlrpclib.ProtocolError, ex:
    1.10          if ex.errcode == -1:
    1.11              print  >>sys.stderr, (