From a082cb87cb22c3b75ddfb9df4547d5e1a636bb40 Mon Sep 17 00:00:00 2001 From: Divyansh Singh Date: Sat, 25 Mar 2023 12:12:56 +0530 Subject: [PATCH] fix: replace primitive values in config without quotes --- borgmatic/config/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/config/load.py b/borgmatic/config/load.py index 01ceab2..9cc665a 100644 --- a/borgmatic/config/load.py +++ b/borgmatic/config/load.py @@ -106,7 +106,7 @@ def load_configuration(filename): if config and 'constants' in config: for key, value in config['constants'].items(): value = json.dumps(value) - file_contents = file_contents.replace(f'{{{key}}}', value) + file_contents = file_contents.replace(f'{{{key}}}', value.strip('"')) config = yaml.load(file_contents) del config['constants'] return config