From 3e97dc47221d19b39aba99f6d389d2ec326e72be Mon Sep 17 00:00:00 2001 From: sateesh Date: Thu, 10 Mar 2011 21:07:44 +0530 Subject: Updated the code to detect the exception by fault type. SOAP faults are embedded in the SOAP response as a property. Certain faults are sent as a part of the SOAP body as property of missingSet. E.g. NotAuthenticated fault. So we examine the response object for missingSet and try to check the property for fault type. --- nova/console/vmrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/console') diff --git a/nova/console/vmrc.py b/nova/console/vmrc.py index 09f8067e5..9c5e3b444 100644 --- a/nova/console/vmrc.py +++ b/nova/console/vmrc.py @@ -119,7 +119,7 @@ class VMRCSessionConsole(VMRCConsole): vim_session._get_vim(), "AcquireCloneTicket", vim_session._get_vim().get_service_content().sessionManager) - return str(vm_ref) + ":" + virtual_machine_ticket + return str(vm_ref.value) + ":" + virtual_machine_ticket def is_otp(self): """Is one time password.""" -- cgit