From 8fe38b528bd2b9c9e544c89b75afdf72c745ac77 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 16 Aug 2021 09:36:01 +0200 Subject: [PATCH] outposts: fix managed check Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index b93d4fd09..e62c6179c 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -9,6 +9,7 @@ from yaml import safe_dump from authentik import __version__ from authentik.outposts.controllers.base import BaseController, ControllerException +from authentik.outposts.managed import MANAGED_OUTPOST from authentik.outposts.models import DockerServiceConnection, Outpost, ServiceConnectionInvalid @@ -102,7 +103,7 @@ class DockerController(BaseController): # pylint: disable=too-many-return-statements def up(self): - if self.outpost.managed != "": + if self.outpost.managed == MANAGED_OUTPOST: return None try: container, has_been_created = self._get_container() @@ -167,7 +168,7 @@ class DockerController(BaseController): raise ControllerException(str(exc)) from exc def down(self): - if self.outpost.managed != "": + if self.outpost.managed != MANAGED_OUTPOST: return try: container, _ = self._get_container()