mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
docker_container: fix idempotency problem with empty published_ports list (#979)
* Distinguish between [] and None. * Add changelog fragment. * Fix typo.
This commit is contained in:
@@ -2400,7 +2400,7 @@ class Container(DockerBaseClass):
|
||||
return shlex.split(self.parameters.entrypoint)
|
||||
|
||||
def _get_expected_ports(self):
|
||||
if not self.parameters.published_ports:
|
||||
if self.parameters.published_ports is None:
|
||||
return None
|
||||
expected_bound_ports = {}
|
||||
for container_port, config in self.parameters.published_ports.items():
|
||||
|
||||
Reference in New Issue
Block a user