From 4df9332649eb0bba46f58e82e353f5f675522006 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 13 Feb 2018 11:01:16 +0000 Subject: [PATCH] Use clouds.yaml Instead of passing all things to the client, and forgetting some, we should directly load the config, and use the cloud configuration for creating connections. Change-Id: I8e66ff033b6d49537b161710e983750f40d5e93d --- bowling_ball/rolling_tests.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bowling_ball/rolling_tests.py b/bowling_ball/rolling_tests.py index 8a3bd87a..43152850 100755 --- a/bowling_ball/rolling_tests.py +++ b/bowling_ball/rolling_tests.py @@ -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