mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
* Distinguish between [] and None.
* Add changelog fragment.
* Fix typo.
(cherry picked from commit 4e1f6683d9
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8e7b779ec9
commit
59a7064392
3 changed files with 16 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue