outposts: add additional error checking for docker controller

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-17 15:54:57 +02:00
parent f9b6b1dd3f
commit 8d32a53126
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class DockerController(BaseController):
return False
for port in self.deployment_ports:
key = f"{port.inner_port or port.port}/{port.protocol.lower()}"
if key not in container.ports:
if not container.ports.get(key, None):
return True
host_matching = False
for host_port in container.ports[key]: