From 4980ebf06477b5e9db9718aba5c9bcf9736fc715 Mon Sep 17 00:00:00 2001 From: ethackal Date: Thu, 14 Sep 2017 10:03:33 +0000 Subject: [PATCH] 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 --- lib/ansible/module_utils/ansible_tower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ansible_tower.py b/lib/ansible/module_utils/ansible_tower.py index 90de99b64f..6835ea9227 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