Correctly set verify_ssl to a boolean value

This commit is contained in:
James Laska 2016-06-17 20:53:46 -04:00
parent de9b44e041
commit d182280ff7

View File

@ -387,7 +387,7 @@ def setup():
# pyrax does not honor the environment variable CLOUD_VERIFY_SSL=False, so let's help pyrax
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)
if env: