Commit 5fdd2a7b by Andrew DeMaria

Fix #8047

Ensure that json is returned when only updating the cache and in check mode
parent 366b39cf
......@@ -204,6 +204,9 @@ def main():
if not p['name']:
module.exit_json(changed=True, msg='updated the package master lists')
if p['update_cache'] and module.check_mode and not p['name']:
module.exit_json(changed=True, msg='Would have updated the package cache')
if p['name']:
pkgs = p['name'].split(',')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment