vmware: Use cookiejar from oslo.vmware client directly
With changing the SOAP library backing oslo.vmware [1], the cookiejar of a session must be accessed differently. Therefore, oslo.vmware introduced a property on the client to abstract this change away. This commit uses the new place to access the attribute. [1] https://specs.openstack.org/openstack/oslo-specs/specs/victoria/oslo-vmware-soap-library-switch.html Change-Id: Iec6c4be5c61710f2a7a0056168d0c31ade987b1f
This commit is contained in:
parent
04e5ead7c0
commit
83c6fa7f74
|
@ -564,7 +564,7 @@ class Store(glance_store.Store):
|
||||||
"""Build ESX host session cookie header."""
|
"""Build ESX host session cookie header."""
|
||||||
if verify_session and not self.session.is_current_session_active():
|
if verify_session and not self.session.is_current_session_active():
|
||||||
self.reset_session()
|
self.reset_session()
|
||||||
vim_cookies = self.session.vim.client.options.transport.cookiejar
|
vim_cookies = self.session.vim.client.cookiejar
|
||||||
if len(list(vim_cookies)) > 0:
|
if len(list(vim_cookies)) > 0:
|
||||||
cookie = list(vim_cookies)[0]
|
cookie = list(vim_cookies)[0]
|
||||||
return cookie.name + '=' + cookie.value
|
return cookie.name + '=' + cookie.value
|
||||||
|
|
|
@ -54,7 +54,7 @@ oslo.serialization==2.18.0
|
||||||
oslo.service==1.41.1
|
oslo.service==1.41.1
|
||||||
oslotest==3.2.0
|
oslotest==3.2.0
|
||||||
oslo.utils==4.7.0
|
oslo.utils==4.7.0
|
||||||
oslo.vmware==2.17.0
|
oslo.vmware==3.6.0
|
||||||
Parsley==1.3
|
Parsley==1.3
|
||||||
pbr==3.1.1
|
pbr==3.1.1
|
||||||
prettytable==0.7.2
|
prettytable==0.7.2
|
||||||
|
|
|
@ -63,7 +63,7 @@ console_scripts =
|
||||||
[extras]
|
[extras]
|
||||||
# Dependencies for each of the optional stores
|
# Dependencies for each of the optional stores
|
||||||
vmware =
|
vmware =
|
||||||
oslo.vmware>=2.17.0 # Apache-2.0
|
oslo.vmware>=3.6.0 # Apache-2.0
|
||||||
swift =
|
swift =
|
||||||
httplib2>=0.9.1 # MIT
|
httplib2>=0.9.1 # MIT
|
||||||
python-swiftclient>=3.2.0 # Apache-2.0
|
python-swiftclient>=3.2.0 # Apache-2.0
|
||||||
|
|
|
@ -21,7 +21,7 @@ oslotest>=3.2.0 # Apache-2.0
|
||||||
|
|
||||||
# Dependencies for each of the optional stores
|
# Dependencies for each of the optional stores
|
||||||
boto3>=1.9.199 # Apache-2.0
|
boto3>=1.9.199 # Apache-2.0
|
||||||
oslo.vmware>=2.17.0 # Apache-2.0
|
oslo.vmware>=3.6.0 # Apache-2.0
|
||||||
httplib2>=0.9.1 # MIT
|
httplib2>=0.9.1 # MIT
|
||||||
python-swiftclient>=3.2.0 # Apache-2.0
|
python-swiftclient>=3.2.0 # Apache-2.0
|
||||||
python-cinderclient>=4.1.0 # Apache-2.0
|
python-cinderclient>=4.1.0 # Apache-2.0
|
||||||
|
|
Loading…
Reference in New Issue