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

[Xen-changelog] [xen-unstable] [XM] Throw proper exception for xm console for unstarted domains.



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1166702741 0
# Node ID 628bd9b3fe498eee9dc12d1113c3f325e6ea01a1
# Parent  93667f6c5cc8f4ca80282f86bffe2db324d674d9
[XM] Throw proper exception for xm console for unstarted domains.

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

diff -r 93667f6c5cc8 -r 628bd9b3fe49 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Thu Dec 21 12:05:34 2006 +0000
+++ b/tools/python/xen/xm/main.py       Thu Dec 21 12:05:41 2006 +0000
@@ -1244,7 +1244,7 @@ def xm_console(args):
         if quiet:
             sys.exit(1)
         else:
-            raise Exception("Domain is not started")
+            raise xmlrpclib.Fault(0, "Domain '%s' is not started" % dom)
 
     console.execConsole(domid)
 

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