From b362d2af03c4b3dc3c5b7d807d3b7c769f804af7 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 4 Nov 2021 13:43:09 +0100 Subject: [PATCH] lib: fix linting issue Signed-off-by: Jens Langhammer --- authentik/lib/utils/reflection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/lib/utils/reflection.py b/authentik/lib/utils/reflection.py index 8f96f2b00..a2b175ae8 100644 --- a/authentik/lib/utils/reflection.py +++ b/authentik/lib/utils/reflection.py @@ -53,10 +53,10 @@ def get_env() -> str: """Get environment in which authentik is currently running""" if SERVICE_HOST_ENV_NAME in os.environ: return "kubernetes" - elif "CI" in os.environ: + if "CI" in os.environ: return "ci" - elif Path("/tmp/authentik-mode").exists(): # nosec + if Path("/tmp/authentik-mode").exists(): # nosec return "compose" - elif CONFIG.y_bool("debug"): + if CONFIG.y_bool("debug"): return "dev" return "custom"