Ensure that json is returned when only updating the cache and in check mode
reviewable/pr18780/r1
Andrew DeMaria 10 years ago
parent 0a33ac418a
commit 65e27c3375

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

Loading…
Cancel
Save