Merge "Use clouds.yaml"

This commit is contained in:
Zuul 2018-02-13 12:32:32 +00:00 committed by Gerrit Code Review
commit f1f9de8391

View File

@ -91,15 +91,8 @@ class ServiceTest(object):
def get_connection(self):
"""Get an OpenStackSDK connection"""
auth_url = os.environ['OS_AUTH_URL']
password = os.environ['OS_PASSWORD']
conn = connection.Connection(auth_url=auth_url,
username='admin',
password=password,
project_name='admin',
user_domain_id='default',
project_domain_id='default')
conn = connection.from_config(cloud_name='default')
self.conn = conn
return conn