diff options
author | Nikhil Jain <jainnikhil30@gmail.com> | 2021-02-15 05:01:16 +0100 |
---|---|---|
committer | Nikhil Jain <jainnikhil30@gmail.com> | 2021-02-15 05:01:16 +0100 |
commit | 3ad2bb1bb9a4b9f0fdddf39cb6416f8373a245b5 (patch) | |
tree | 9b5afbe470f8d5dde687c7a89a3c2be744c8af3f /awx_collection | |
parent | add support diff mode in tower_settings module (diff) | |
download | awx-3ad2bb1bb9a4b9f0fdddf39cb6416f8373a245b5.tar.xz awx-3ad2bb1bb9a4b9f0fdddf39cb6416f8373a245b5.zip |
remove whitespaces
Diffstat (limited to 'awx_collection')
-rw-r--r-- | awx_collection/plugins/modules/tower_settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awx_collection/plugins/modules/tower_settings.py b/awx_collection/plugins/modules/tower_settings.py index 7fcd3618dc..b0f39126c3 100644 --- a/awx_collection/plugins/modules/tower_settings.py +++ b/awx_collection/plugins/modules/tower_settings.py @@ -133,7 +133,7 @@ def main(): existing_settings = module.get_endpoint('settings/all')['json'] # Begin a json response - json_output = {'changed': False, 'old_values': {}, 'new_values': {} } + json_output = {'changed': False, 'old_values': {}, 'new_values': {}} # Check any of the settings to see if anything needs to be updated needs_update = False @@ -153,7 +153,7 @@ def main(): # If nothing needs an update we can simply exit with the response (as not changed) if not needs_update: module.exit_json(**json_output) - + if module.check_mode and module._diff: json_output['changed'] = True module.exit_json(**json_output) |