[vtpm] Return a proper error when in the Xen-API call.

Fix a bug in the test.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
Keir Fraser committed 2007-04-19 19:29:45 +01:00
1 parent 856a272f35
commit 37b9dfbf71
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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):
+1 -1
View File
@@ -91,7 +91,7 @@ if vtpm_uuid not in vm_vtpms:
try:
console = domain.start()
except DomainError, e:
FAIL("Unable to create domain (%s)")
FAIL("Unable to create domain.")
try:
console.sendInput("input")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.