mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pacman: Check for package list before installing (#52246)
Fixes: #45638 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
88545b0292
commit
52d8f9c397
1 changed files with 2 additions and 0 deletions
|
@ -474,6 +474,8 @@ def main():
|
|||
install_packages(module, pacman_path, p['state'], pkgs, pkg_files)
|
||||
elif p['state'] == 'absent':
|
||||
remove_packages(module, pacman_path, pkgs)
|
||||
else:
|
||||
module.exit_json(changed=False, msg="No package specified to work on.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue