kas: support .yaml extension

.yaml is the recommended extension (https://yaml.org/faq.html)

Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Chris Laplante 2020-07-24 17:50:34 +02:00 committed by Jan Kiszka
parent 6b025e4910
commit 7068767d27

View File

@ -58,7 +58,7 @@ def load_config(filename):
import json
with open(filename, 'rb') as fds:
config = json.load(fds)
elif ext == '.yml':
elif ext in ['.yml', '.yaml']:
import yaml
with open(filename, 'rb') as fds:
config = yaml.safe_load(fds)