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"