Additional properties now supported.

This commit is contained in:
Dave Shanley
2022-08-05 13:20:29 -04:00
parent bdb9aa7c41
commit 4bb6a9ad49
3 changed files with 42 additions and 10 deletions

View File

@@ -244,6 +244,8 @@ func FindKeyNodeFull(key string, nodes []*yaml.Node) (keyNode *yaml.Node, labelN
if i%2 == 0 && key == v.Value {
return v, nodes[i], nodes[i+1] // next node is what we need.
}
}
for _, v := range nodes {
for x, j := range v.Content {
if key == j.Value {
if IsNodeMap(v) {