fix json as env value

This commit is contained in:
2025-01-20 17:59:34 +01:00
parent cce7297357
commit 24efb4b693

View File

@ -436,6 +436,8 @@ def update_configs(path: Path, config: Dict[str, Any]) -> None:
uncomment(envs.keys(), path)
for key, value in envs.items():
logging.debug(f'set {key}={value} in {path}')
if isinstance(value, dict):
value=json.dumps(value)
dotenv.set_key(path, key, value, quote_mode="never")