Use default credentials if None has been passed

Reason - credentials do not load  on import in tempest plugin clients.py


Change-Id: I0303d9c7c9d1b35486874ea999dc36b2430c6ac4
Closes-Bug: #1701255
This commit is contained in:
Sofiia Andriichenko 2017-06-29 13:18:02 +00:00
parent 6e3ea6cdfc
commit 2bee51e99a

View File

@ -27,8 +27,10 @@ CONF = config.CONF
class Manager(object):
def __init__(self,
credentials=common_creds.get_configured_admin_credentials(
'identity_admin')):
credentials=None):
if credentials is None:
credentials = common_creds.\
get_configured_admin_credentials('identity_admin')
self.auth_provider = get_auth_provider(credentials)
self.service_broker_client = service_broker_client.ServiceBrokerClient(
self.auth_provider)