Ensure that json is returned when only updating the cache and in check mode
This commit is contained in:
Andrew DeMaria 2014-07-12 10:57:30 -05:00
parent 366b39cfc1
commit 5fdd2a7b01

View file

@ -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(',')