2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

chore: use set instead of get in config object

This commit is contained in:
Gavin D'souza 2020-03-16 14:31:20 +05:30
parent 3e99fbc46b
commit 9f09138353

View File

@ -78,8 +78,8 @@ def update_supervisord_conf(user):
if section not in config.sections(): if section not in config.sections():
config.add_section(section) config.add_section(section)
config[section]["chmod"] = "0760" config.set(section, "chmod", "0760")
config[section]["chown"] = "{user}:{user}".format(user=user) config.set(section, "chown", "{user}:{user}".format(user=user))
with open(supervisord_conf, "w") as f: with open(supervisord_conf, "w") as f:
config.write(f) config.write(f)