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):