Gracefully allow loading duplicate keys in secrets (#1347)

This commit is contained in:
Franck Nijhof 2019-10-25 11:44:03 +02:00 committed by Pascal Vizeli
parent 05d7eff09a
commit 71a162a871

View File

@ -50,6 +50,7 @@ class SecretsManager(CoreSysAttributes):
# Read secrets
try:
yaml = YAML()
yaml.allow_duplicate_keys = True
data = await self.sys_run_in_executor(yaml.load, self.path_secrets) or {}
# Filter to only get supported values