Use Load function in implementation of LoadProfile function.

pull/12228/head
Andriy Dzikh 2021-08-10 13:24:32 -07:00
parent f939cca85b
commit d2d0fee726
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ func removeChildNodes(inValidPs []*Profile, nodeNames map[string]bool) (ps []*Pr
// LoadProfile loads type Profile based on its name // LoadProfile loads type Profile based on its name
func LoadProfile(name string, miniHome ...string) (*Profile, error) { func LoadProfile(name string, miniHome ...string) (*Profile, error) {
cfg, err := DefaultLoader.LoadConfigFromFile(name, miniHome...) cfg, err := Load(name, miniHome...)
p := &Profile{ p := &Profile{
Name: name, Name: name,
Config: cfg, Config: cfg,