Merge pull request #8106 from muff1nman/pacman-update-checkmode-fix
Fix #8047
This commit is contained in:
commit
e138613db9
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue