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] Fix error logging when we get a 500 respo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix error logging when we get a 500 response.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Mar 2007 05:30:17 -0700
Delivery-date: Thu, 15 Mar 2007 05:30:25 -0700
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 Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173914059 0
# Node ID 8645c726ce9c63080fb5a1dd5534f6057f37016e
# Parent  1ada286787627aeb08498cc6e900e657eff68ff8
Fix error logging when we get a 500 response.

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

diff -r 1ada28678762 -r 8645c726ce9c tools/python/xen/xm/XenAPI.py
--- a/tools/python/xen/xm/XenAPI.py     Wed Mar 14 23:13:37 2007 +0000
+++ b/tools/python/xen/xm/XenAPI.py     Wed Mar 14 23:14:19 2007 +0000
@@ -155,7 +155,7 @@ class Session(xen.util.xmlrpclib2.Server
 
 def _parse_result(result):
     if type(result) != dict or 'Status' not in result:
-        raise xmlrpclib.Fault(500, 'Missing Status in response from server' + 
result)
+        raise xmlrpclib.Fault(500, 'Missing Status in response from server: ' 
+ str(result))
     if result['Status'] == 'Success':
         if 'Value' in result:
             return result['Value']

_______________________________________________
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] Fix error logging when we get a 500 response., Xen patchbot-unstable <=