From 2f65671070e999db62b4f09466812d82078a55a5 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 17 Nov 2023 22:47:30 +0100 Subject: [PATCH] fix(api/config): allow YAML config with .yml (#1299) This commit allow to use both `.yml` and `.yaml` extensions for YAML configuration files as it is usually expected. --- api/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/config/config.go b/api/config/config.go index 67ce687b..c16d63b6 100644 --- a/api/config/config.go +++ b/api/config/config.go @@ -277,7 +277,7 @@ func (cm *ConfigLoader) LoadConfigs(path string) error { } for _, file := range files { // Skip templates, YAML and .keep files - if !strings.Contains(file.Name(), ".yaml") { + if !strings.Contains(file.Name(), ".yaml") && !strings.Contains(file.Name(), ".yml") { continue } c, err := ReadConfig(filepath.Join(path, file.Name()))