Catch the second occurance of ExposedPorts as well

reviewable/pr18780/r1
Sam Yaple 9 years ago
parent 9db5ac8e45
commit f15d285514

@ -1066,7 +1066,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…
Cancel
Save