Fix vCD attach failure 75/7775/2
authorbeierl <mbeierl@vmware.com>
Mon, 15 Jul 2019 13:40:24 +0000 (09:40 -0400)
committerbeierl <mbeierl@vmware.com>
Tue, 23 Jul 2019 14:23:38 +0000 (15:23 +0100)
On session timeout, the vCD connector needs to reauthenticate
to get a new token.  This authentication must also use a
modern version number, or it will fail.

BUG 718

Change-Id: I9ca1258bdb824ed9acb2f6ca712babc2fc91d8c0
Signed-off-by: beierl <mbeierl@vmware.com>
osm_ro/vimconn_vmware.py

index 77ac567..f343eea 100644 (file)
@@ -6485,6 +6485,7 @@ class vimconnector(vimconn.vimconnector):
                                                                                       self.org_name))
             host = self.url
             client = Client(host, verify_ssl_certs=False)
+            client.set_highest_supported_version()
             client.set_credentials(BasicLoginCredentials(self.user, self.org_name, self.passwd))
             # connection object
             self.client = client