From 2bee51e99a294c5704c133b44948489ab5ddb595 Mon Sep 17 00:00:00 2001 From: Sofiia Andriichenko Date: Thu, 29 Jun 2017 13:18:02 +0000 Subject: [PATCH] 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 --- murano_tempest_tests/clients.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/murano_tempest_tests/clients.py b/murano_tempest_tests/clients.py index fb64fa70..08d42f11 100644 --- a/murano_tempest_tests/clients.py +++ b/murano_tempest_tests/clients.py @@ -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)