From b75feab7095bac3e0171d151fb5d2e652310c429 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 19 Apr 2021 19:10:02 +0200 Subject: [PATCH] outposts: don't run outpost_controller when no service connection is set Signed-off-by: Jens Langhammer --- authentik/outposts/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentik/outposts/tasks.py b/authentik/outposts/tasks.py index b187216f3..1c5426eb9 100644 --- a/authentik/outposts/tasks.py +++ b/authentik/outposts/tasks.py @@ -67,6 +67,8 @@ def outpost_controller(self: MonitoredTask, outpost_pk: str): outpost: Outpost = Outpost.objects.get(pk=outpost_pk) self.set_uid(slugify(outpost.name)) try: + if not outpost.service_connection: + return if outpost.type == OutpostType.PROXY: service_connection = outpost.service_connection if isinstance(service_connection, DockerServiceConnection):