1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Allow tower_inventory_sources params to be False (#43749)

Ensure that params set to False are respected, rather than ignored.
This commit is contained in:
Will Thames 2018-08-07 21:19:15 +10:00 committed by AlanCoding
parent 64014faf02
commit 24cedcc560
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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':