Don't use sessions if third party plugin is used
If an auth_plugin is used do not try to load the session from the default keystone providers. Change-Id: If2a87e23cabde006833de70e5c7aa066d95dbf50 Closes-Bug: #1380729
This commit is contained in:
parent
2f130e3e30
commit
7783767f23
@ -479,7 +479,8 @@ def _construct_http_client(username=None, password=None, project_id=None,
|
||||
auth=None,
|
||||
**kwargs):
|
||||
|
||||
if session:
|
||||
# Don't use sessions if third party plugin is used
|
||||
if session and not auth_plugin:
|
||||
kwargs.setdefault('user_agent', 'python-cinderclient')
|
||||
kwargs.setdefault('interface', endpoint_type)
|
||||
return SessionClient(session=session,
|
||||
|
Loading…
x
Reference in New Issue
Block a user