Fix SSL verify/insecure translation
Change-Id: I60d1615c0b7302183492766f224e9c601710c61a
This commit is contained in:
parent
f9879effdf
commit
36f4f79d4e
@ -33,7 +33,7 @@ def make_connection(opts):
|
||||
opts.preferences.set_region(opts.preferences.ALL, cloud.region)
|
||||
auth = cloud.config['auth']
|
||||
if 'insecure' in cloud.config:
|
||||
auth['verify'] = cloud.config['insecure']
|
||||
auth['verify'] = not bool(cloud.config['insecure'])
|
||||
conn = connection.Connection(profile=opts.preferences, **auth)
|
||||
return conn
|
||||
|
||||
|
@ -67,7 +67,7 @@ class BaseFunctionalTest(unittest.TestCase):
|
||||
|
||||
auth = test_cloud.config['auth']
|
||||
if 'insecure' in test_cloud.config:
|
||||
auth['verify'] = test_cloud.config['insecure']
|
||||
auth['verify'] = not bool(test_cloud.config['insecure'])
|
||||
cls.conn = connection.Connection(profile=prof, **auth)
|
||||
|
||||
@classmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user