pacman: Check for package list before installing (#52246)

Fixes: #45638

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/52593/head
Abhijeet Kasurde 6 years ago committed by ansibot
parent 88545b0292
commit 52d8f9c397

@ -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…
Cancel
Save