aboutsummaryrefslogtreecommitdiff
path: root/labbot/config.py
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-05-04 21:18:51 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-05-04 21:18:51 +0200
commit087db8ae09f69dfe70e8b0c75b7ce0a5b2dca1c7 (patch)
tree1e028a625b3fccb9808e60e8a83818d65bc04e29 /labbot/config.py
parent7d727799af7570bd97b2d2a32dccc3c05878f69c (diff)
downloadlab-bot-087db8ae09f69dfe70e8b0c75b7ce0a5b2dca1c7.tar.gz
lab-bot-087db8ae09f69dfe70e8b0c75b7ce0a5b2dca1c7.zip
allow specifying multiple addons, convert config to json before storing
Diffstat (limited to 'labbot/config.py')
-rw-r--r--labbot/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/labbot/config.py b/labbot/config.py
index f372008..f3da425 100644
--- a/labbot/config.py
+++ b/labbot/config.py
@@ -29,6 +29,8 @@ def write_instance_config(name: str, data: dict) -> None:
os.makedirs(instance_path, exist_ok=True)
conf_path = os.path.join(instance_path, CONFIG_FILE)
+ data = json.loads(json.dumps(data))
+
with open(conf_path, "w") as file:
json.dump(data, file)