mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
[PR #8514/df7fe19b backport][stable-9] pacman: do not fail if there is nothing to do (#8523)
pacman: do not fail if there is nothing to do (#8514)
Do not fail if there is nothing to do.
(cherry picked from commit df7fe19bbe
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9a986473bd
commit
fc0f677535
2 changed files with 5 additions and 2 deletions
|
@ -367,8 +367,9 @@ class Pacman(object):
|
|||
self.install_packages(pkgs)
|
||||
self.success()
|
||||
|
||||
# This shouldn't happen...
|
||||
self.fail("This is a bug")
|
||||
# This happens if an empty list has been provided for name
|
||||
self.add_exit_infos(msg='Nothing to do')
|
||||
self.success()
|
||||
|
||||
def install_packages(self, pkgs):
|
||||
pkgs_to_install = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue