summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorethackal <john@ethackal.com>2017-09-14 10:03:33 +0000
committerToshio Kuratomi <a.badger@gmail.com>2017-09-14 09:26:59 -0700
commit4a581871037f8470f3e7339e34ce93c479d9c37b (patch)
tree1daba32502d84b00f228b646d9f0668ab1795acf
parente8e2c5a9f7b2fcbe55664b576f38976bea8f7883 (diff)
downloadansible-4a581871037f8470f3e7339e34ce93c479d9c37b.tar.gz
Fixes verify_ssl option when False in ansible_tower module util (#30308)
* Fixes verify_ssl option when False in ansible_tower module util * fixed comparison to None per PEP-8 standards (cherry picked from commit 4980ebf06477b5e9db9718aba5c9bcf9736fc715)
-rw-r--r--lib/ansible/module_utils/ansible_tower.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/ansible_tower.py b/lib/ansible/module_utils/ansible_tower.py
index eefbf76753..d00e29fc0b 100644
--- a/lib/ansible/module_utils/ansible_tower.py
+++ b/lib/ansible/module_utils/ansible_tower.py
@@ -62,7 +62,7 @@ def tower_auth_config(module):
if password:
auth_config['password'] = password
verify_ssl = module.params.get('tower_verify_ssl')
- if verify_ssl:
+ if verify_ssl is not None:
auth_config['verify_ssl'] = verify_ssl
return auth_config