|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.0.5-testing] [vtpm] Return a proper error when in
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1177007385 -3600
# Node ID ed6de46738fdac4c5036491277168a8fad01badd
# Parent 186e2cf99bbbc4d953decf1d8581fdc410f8d495
[vtpm] Return a proper error when in the Xen-API call.
Fix a bug in the test.
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
tools/python/xen/xend/XendAPI.py | 2 +-
tools/xm-test/tests/vtpm/09_vtpm-xapi.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -r 186e2cf99bbb -r ed6de46738fd tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Thu Apr 19 19:29:19 2007 +0100
+++ b/tools/python/xen/xend/XendAPI.py Thu Apr 19 19:29:45 2007 +0100
@@ -2372,7 +2372,7 @@ class XendAPI(object):
if not cfg:
return xen_api_error(['HANDLE_INVALID', 'VTPM', vtpm_ref])
if not cfg.has_key('backend'):
- return xen_api_error(['VTPM backend not set'])
+ return xen_api_error(['INTERNAL_ERROR', 'VTPM backend not set'])
return xen_api_success(cfg['backend'])
def VTPM_get_VM(self, session, vtpm_ref):
diff -r 186e2cf99bbb -r ed6de46738fd tools/xm-test/tests/vtpm/09_vtpm-xapi.py
--- a/tools/xm-test/tests/vtpm/09_vtpm-xapi.py Thu Apr 19 19:29:19 2007 +0100
+++ b/tools/xm-test/tests/vtpm/09_vtpm-xapi.py Thu Apr 19 19:29:45 2007 +0100
@@ -91,7 +91,7 @@ try:
try:
console = domain.start()
except DomainError, e:
- FAIL("Unable to create domain (%s)")
+ FAIL("Unable to create domain.")
try:
console.sendInput("input")
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.0.5-testing] [vtpm] Return a proper error when in the Xen-API call.,
Xen patchbot-3.0.5-testing <=
|
|
|
|
|