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

[Xen-changelog] [xen-unstable] [XEND] Return an Internal Server Error via the Xend HTTP server.



# HG changeset patch
# User atse@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 7d4def53936c4c5a8a0a1e82dac42a96aae0d1c1
# Parent  956e9aaf88c9e7928b315b3e4b2f7a62c80dfe76
[XEND] Return an Internal Server Error via the Xend HTTP server.

This allows domain creation failures can be detected when done via HTTP.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 tools/python/xen/web/SrvBase.py |    1 +
 1 files changed, 1 insertion(+)

diff -r 956e9aaf88c9 -r 7d4def53936c tools/python/xen/web/SrvBase.py
--- a/tools/python/xen/web/SrvBase.py   Tue Sep 12 11:09:22 2006 +0100
+++ b/tools/python/xen/web/SrvBase.py   Tue Sep 12 16:33:33 2006 +0100
@@ -84,6 +84,7 @@ class SrvBase(resource.Resource):
             try:
                 return op_method(op, req)
             except Exception, exn:
+                req.setResponseCode(http.INTERNAL_SERVER_ERROR, "Request 
failed: " + op)
                 log.exception("Request %s failed.", op)
                 if req.useSxp():
                     return ['xend.err', str(exn)]

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