mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Catch the second occurance of ExposedPorts as well
This commit is contained in:
parent
463fb5a058
commit
a4a4b6f423
1 changed files with 1 additions and 1 deletions
|
@ -1071,7 +1071,7 @@ class DockerManager(object):
|
|||
for p in (self.exposed_ports or []):
|
||||
expected_exposed_ports.add("/".join(p))
|
||||
|
||||
actually_exposed_ports = set((container["Config"]["ExposedPorts"] or {}).keys())
|
||||
actually_exposed_ports = set((container["Config"].get("ExposedPorts") or {}).keys())
|
||||
|
||||
if actually_exposed_ports != expected_exposed_ports:
|
||||
self.reload_reasons.append('exposed_ports ({0} => {1})'.format(actually_exposed_ports, expected_exposed_ports))
|
||||
|
|
Loading…
Reference in a new issue