From 8d32a53126e63cfc82c94769a3517ea61f796e5c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Oct 2021 15:54:57 +0200 Subject: [PATCH] outposts: add additional error checking for docker controller Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index bfc83ff2b..c7192c8d6 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -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]: