From 9f091383535a09e634b944b048d0fd1e18ad14ee Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Mon, 16 Mar 2020 14:31:20 +0530 Subject: [PATCH] chore: use set instead of get in config object --- bench/config/supervisor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/config/supervisor.py b/bench/config/supervisor.py index d97f3559..253a1a21 100644 --- a/bench/config/supervisor.py +++ b/bench/config/supervisor.py @@ -78,8 +78,8 @@ def update_supervisord_conf(user): if section not in config.sections(): config.add_section(section) - config[section]["chmod"] = "0760" - config[section]["chown"] = "{user}:{user}".format(user=user) + config.set(section, "chmod", "0760") + config.set(section, "chown", "{user}:{user}".format(user=user)) with open(supervisord_conf, "w") as f: config.write(f)