From 2a53bc43308cd9e1750d7f9bcb628606960c8753 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 8 Aug 2021 16:32:12 +0200 Subject: [PATCH] outpost: add fallback for authentik_host when its not set in config Signed-off-by: Jens Langhammer --- authentik/outposts/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/authentik/outposts/models.py b/authentik/outposts/models.py index c159cb633..012415bcd 100644 --- a/authentik/outposts/models.py +++ b/authentik/outposts/models.py @@ -312,6 +312,10 @@ class Outpost(ManagedModel): @property def config(self) -> OutpostConfig: """Load config as OutpostConfig object""" + # When embedded outpost is generated initially, this field isn't set + # (on purpose, as we don't want it to be managed by us) + if "authentik_host" not in self._config: + self._config["authentik_host"] = "" return from_dict(OutpostConfig, self._config) @config.setter