forked from moritz/alakazam
fix json as env value
This commit is contained in:
@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user