From 24cedcc56055bd238db7d267f03ce127093b8e56 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Tue, 7 Aug 2018 21:19:15 +1000 Subject: [PATCH] Allow tower_inventory_sources params to be False (#43749) Ensure that params set to False are respected, rather than ignored. --- .../web_infrastructure/ansible_tower/tower_inventory_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_inventory_source.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_inventory_source.py index 46133fe9d9..b8f8098fcb 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_inventory_source.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_inventory_source.py @@ -309,7 +309,7 @@ def main(): 'instance_filters', 'group_by', 'overwrite', 'overwrite_vars', 'update_on_launch', 'update_cache_timeout'): - if module.params.get(key): + if module.params.get(key) is not None: params[key] = module.params.get(key) if state == 'present':