mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[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:
1 parent
856a272f35
commit
37b9dfbf71
2 files changed
+2
-2
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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")
|
||||
|
||||