Index: root/xen-unstable.hg/tools/python/xen/xend/XendAPI.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendAPI.py +++ root/xen-unstable.hg/tools/python/xen/xend/XendAPI.py @@ -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): Index: root/xen-unstable.hg/tools/xm-test/tests/vtpm/09_vtpm-xapi.py =================================================================== --- root.orig/xen-unstable.hg/tools/xm-test/tests/vtpm/09_vtpm-xapi.py +++ root/xen-unstable.hg/tools/xm-test/tests/vtpm/09_vtpm-xapi.py @@ -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")