lib: fix linting issue
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
bcd42fce13
commit
b362d2af03
|
@ -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"
|
||||||
|
|
Reference in New Issue