fix: adjust yaml config decodification to yaml.v3 (#5722)

This commit is contained in:
Ariel Leyva
2026-01-31 01:35:47 -05:00
committed by GitHub
parent 1053aace8c
commit b594d4d4e2
2 changed files with 1 additions and 35 deletions

View File

@@ -3,7 +3,6 @@ package cmd
import (
"encoding/json"
"errors"
"path/filepath"
"reflect"
"github.com/spf13/cobra"
@@ -68,12 +67,7 @@ The path must be for a json or yaml file.`,
return err
}
var rawAuther interface{}
if filepath.Ext(args[0]) != ".json" {
rawAuther = cleanUpInterfaceMap(file.Auther.(map[interface{}]interface{}))
} else {
rawAuther = file.Auther
}
var rawAuther = file.Auther
var auther auth.Auther
var autherErr error