pacman: Check for package list before installing (#52246)
Fixes: #45638 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/4420/head
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…
Reference in New Issue