From 72f5a4c4606fe082aa9837f0a44d35a3d093709a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 30 May 2021 15:26:20 +0200 Subject: [PATCH] outposts: fix possible recursion error in docker controller Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index 95a85bc05..161f824c2 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -81,9 +81,12 @@ class DockerController(BaseController): True, ) + # pylint: disable=too-many-return-statements def up(self): try: container, has_been_created = self._get_container() + if has_been_created: + return None # Check if the container is out of date, delete it and retry if len(container.image.tags) > 0: tag: str = container.image.tags[0]