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

Fixes: #45638

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-02-17 16:34:46 +05:30 committed by ansibot
parent 88545b0292
commit 52d8f9c397

View file

@ -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__":