avoid error when the node has local-config

This commit is contained in:
Donny Xia
2020-12-15 13:29:19 -08:00
parent 67e445c10b
commit d016326877
4 changed files with 104 additions and 74 deletions

View File

@@ -152,11 +152,11 @@ func (rmF *Factory) NewResMapFromRNodeSlice(rnodes []*yaml.RNode) (ResMap, error
if err != nil {
return nil, err
}
r, err := rmF.resF.FromBytes([]byte(s))
r, err := rmF.resF.SliceFromBytes([]byte(s))
if err != nil {
return nil, err
}
resources = append(resources, r)
resources = append(resources, r...)
}
return newResMapFromResourceSlice(resources)
}