summaryrefslogtreecommitdiff
path: root/oslo_vmware/rw_handles.py
diff options
context:
space:
mode:
authorJohannes Kulik <johannes.kulik@sap.com>2020-05-11 15:57:32 +0200
committerJohannes Kulik <johannes.kulik@sap.com>2020-07-14 10:03:41 +0200
commitdc4eb020ad3f9ebd90d030bd20853019918c51b9 (patch)
treeea97fd4c741b505cf5e5f9b767f3fe4e96e9e631 /oslo_vmware/rw_handles.py
parent32c8d43a20cb6a29f03324fbc2e6cad3bfb5a294 (diff)
downloadoslo-vmware-dc4eb020ad3f9ebd90d030bd20853019918c51b9.tar.gz
Add backend-independent access to cookiejar3.6.0
Having the cookiejar available as attribute on the client instead of some child objects exposes an interface which depending code can rely on. This will help with upcoming efforts to switch the SOAP library backing oslo.vmware. This is part of phase 1 of https://specs.openstack.org/openstack/oslo-specs/specs/victoria/oslo-vmware-soap-library-switch.html Change-Id: I72082f10a184a2451dfda3d002a9288fefcef961
Diffstat (limited to 'oslo_vmware/rw_handles.py')
-rw-r--r--oslo_vmware/rw_handles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_vmware/rw_handles.py b/oslo_vmware/rw_handles.py
index e0dfc7c..e3769ec 100644
--- a/oslo_vmware/rw_handles.py
+++ b/oslo_vmware/rw_handles.py
@@ -492,7 +492,7 @@ class VmdkWriteHandle(VmdkHandle):
url, thumbprint = self._find_vmdk_url(lease_info, host, port)
self._vm_ref = lease_info.entity
- cookies = session.vim.client.options.transport.cookiejar
+ cookies = session.vim.client.cookiejar
# Create HTTP connection to write to VMDK URL
if http_method == 'PUT':
overwrite = 't'
@@ -600,7 +600,7 @@ class VmdkReadHandle(VmdkHandle):
# find URL of the VMDK file to be read and open connection
url, thumbprint = self._find_vmdk_url(lease_info, host, port)
- cookies = session.vim.client.options.transport.cookiejar
+ cookies = session.vim.client.cookiejar
self._conn = self._create_read_connection(url,
cookies=cookies,
ssl_thumbprint=thumbprint)