diff --git a/cli/util/util.go b/cli/util/util.go index 6eb473635..44de0ab22 100644 --- a/cli/util/util.go +++ b/cli/util/util.go @@ -802,6 +802,10 @@ func GetYamlFileName(fileName string, mustExist bool) (string, error) { fileBaseName = strings.TrimSuffix(fileName, ".yaml") case ".yml": fileBaseName = strings.TrimSuffix(fileName, ".yml") + case ".": + fileBaseName = strings.TrimSuffix(fileName, ".") + case "": + fileBaseName = fileName default: return "", fmt.Errorf("provided file '%s' has no .yaml/.yml extension", fileName) }