diff --git a/examples/connection.py b/examples/connection.py index 7cb5b0df..dfc417ed 100644 --- a/examples/connection.py +++ b/examples/connection.py @@ -31,6 +31,8 @@ def make_connection(opts): occ = os_client_config.OpenStackConfig() cloud = occ.get_one_cloud(opts.cloud, opts) auth = cloud.config['auth'] + if 'insecure' in cloud.config: + auth['verify'] = cloud.config['insecure'] conn = connection.Connection(preference=opts.user_preferences, **auth) return conn diff --git a/openstack/tests/functional/base.py b/openstack/tests/functional/base.py index 0ae04552..ca0dab29 100644 --- a/openstack/tests/functional/base.py +++ b/openstack/tests/functional/base.py @@ -32,6 +32,8 @@ class BaseFunctionalTest(unittest.TestCase): utils.enable_logging(True) auth = test_cloud.config['auth'] + if 'insecure' in test_cloud.config: + auth['verify'] = test_cloud.config['insecure'] cls.conn = connection.Connection(preference=pref, **auth) @classmethod