From 7068767d272bb292d40ceee825133fe277168904 Mon Sep 17 00:00:00 2001 From: Chris Laplante Date: Fri, 24 Jul 2020 17:50:34 +0200 Subject: [PATCH] kas: support .yaml extension .yaml is the recommended extension (https://yaml.org/faq.html) Signed-off-by: Chris Laplante Signed-off-by: Jan Kiszka --- kas/includehandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kas/includehandler.py b/kas/includehandler.py index 354d9ec..6fd3deb 100644 --- a/kas/includehandler.py +++ b/kas/includehandler.py @@ -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)