ia64/xen-unstable

changeset 13152:628bd9b3fe49

[XM] Throw proper exception for xm console for unstarted domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Dec 21 12:05:41 2006 +0000 (2006-12-21)
parents 93667f6c5cc8
children 5c46e27e3915
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Dec 21 12:05:34 2006 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Dec 21 12:05:41 2006 +0000
     1.3 @@ -1244,7 +1244,7 @@ def xm_console(args):
     1.4          if quiet:
     1.5              sys.exit(1)
     1.6          else:
     1.7 -            raise Exception("Domain is not started")
     1.8 +            raise xmlrpclib.Fault(0, "Domain '%s' is not started" % dom)
     1.9  
    1.10      console.execConsole(domid)
    1.11