From 53759aa140e112daaf7d395e1dc1a61dfea9844d Mon Sep 17 00:00:00 2001 From: Jeff Zohrab Date: Thu, 12 Sep 2024 12:02:41 -0700 Subject: [PATCH] Interpret IS_DOCKER flag correctly. --- lute/config/app_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lute/config/app_config.py b/lute/config/app_config.py index 37014521..e7aec297 100644 --- a/lute/config/app_config.py +++ b/lute/config/app_config.py @@ -36,7 +36,7 @@ def _load_config(self, config_file_path): if self.env not in ["prod", "dev"]: raise ValueError(f"ENV must be prod or dev, was {self.env}.") - self.is_docker = "IS_DOCKER" in config + self.is_docker = bool(config.get("IS_DOCKER", False)) # Database name. self.dbname = config.get("DBNAME", None)