mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-30 13:23:01 +02:00
fix: replace primitive values in config without quotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user