docker_swarm_service: fix crash during idempotence check if published_port is not specified (#136)

* Avoid crash during idempotence check if published_port is not specified.

* Add tests.

* Convert lambda to function.
This commit is contained in:
Felix Fontein
2021-05-05 08:00:22 +02:00
committed by GitHub
parent 859bc29f9e
commit 74475d1d9b
3 changed files with 42 additions and 2 deletions
@@ -0,0 +1,2 @@
bugfixes:
- "docker_swarm_services - avoid crash during idempotence check if ``published_port`` is not specified (https://github.com/ansible-collections/community.docker/issues/107, https://github.com/ansible-collections/community.docker/pull/136)."