1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix idempotency when removing packages.

If the package is already not present, then we have nothing to do.
This commit is contained in:
Peter Oliver 2015-01-25 15:44:32 +00:00 committed by Matt Clay
parent defdc7c44b
commit 21a3fd5b20

View file

@ -140,6 +140,9 @@ def set_publisher(module, params):
def unset_publisher(module, publisher):
if not publisher in get_publishers(module):
module.exit_json()
rc, out, err = module.run_command(
["pkg", "unset-publisher", publisher],
check_rc=True