Small file ext tweak

This commit is contained in:
Tomaž Jerman
2020-11-27 11:19:15 +01:00
parent f5ee8419d0
commit 72c1885ee8
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"io"
"os"
"path/filepath"
"strings"
"github.com/cortezaproject/corteza-server/pkg/envoy/resource"
"gopkg.in/yaml.v3"
@@ -36,7 +37,7 @@ func Decoder(l loader) *decoder {
// CanDecodeFile
func (y *decoder) CanDecodeFile(i os.FileInfo) bool {
switch filepath.Ext(i.Name()) {
switch strings.Trim(filepath.Ext(i.Name()), ".") {
case "yaml", "yml":
return true
}