lib: fix linting issue

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-04 13:43:09 +01:00
parent bcd42fce13
commit b362d2af03
1 changed files with 3 additions and 3 deletions

View File

@ -53,10 +53,10 @@ def get_env() -> str:
"""Get environment in which authentik is currently running""" """Get environment in which authentik is currently running"""
if SERVICE_HOST_ENV_NAME in os.environ: if SERVICE_HOST_ENV_NAME in os.environ:
return "kubernetes" return "kubernetes"
elif "CI" in os.environ: if "CI" in os.environ:
return "ci" return "ci"
elif Path("/tmp/authentik-mode").exists(): # nosec if Path("/tmp/authentik-mode").exists(): # nosec
return "compose" return "compose"
elif CONFIG.y_bool("debug"): if CONFIG.y_bool("debug"):
return "dev" return "dev"
return "custom" return "custom"