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] [XM] Throw proper exception for xm consol

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM] Throw proper exception for xm console for unstarted domains.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Dec 2006 09:05:14 -0800
Delivery-date: Thu, 21 Dec 2006 09:06:10 -0800
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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XM] Throw proper exception for xm console for unstarted domains., Xen patchbot-unstable <=