mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Correctly set verify_ssl to a boolean value
This commit is contained in:
@@ -387,7 +387,7 @@ def setup():
|
|||||||
|
|
||||||
# pyrax does not honor the environment variable CLOUD_VERIFY_SSL=False, so let's help pyrax
|
# pyrax does not honor the environment variable CLOUD_VERIFY_SSL=False, so let's help pyrax
|
||||||
if 'CLOUD_VERIFY_SSL' in os.environ:
|
if 'CLOUD_VERIFY_SSL' in os.environ:
|
||||||
pyrax.set_setting('verify_ssl', os.environ['CLOUD_VERIFY_SSL'])
|
pyrax.set_setting('verify_ssl', os.environ['CLOUD_VERIFY_SSL'] in [1, 'true', 'True'])
|
||||||
|
|
||||||
env = get_config(p, 'rax', 'environment', 'RAX_ENV', None)
|
env = get_config(p, 'rax', 'environment', 'RAX_ENV', None)
|
||||||
if env:
|
if env:
|
||||||
|
|||||||
Reference in New Issue
Block a user