Fixed updating yaml from other files

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 90d55fb52a
commit 5aff50a345
9 changed files with 108 additions and 23 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ func AssignUpdateOperator(d *dataTreeNavigator, matchingNodes *list.List, pathNo
first := rhs.Front()
if first != nil {
candidate.UpdateFrom(first.Value.(*CandidateNode))
rhsCandidate := first.Value.(*CandidateNode)
rhsCandidate.Node = UnwrapDoc(rhsCandidate.Node)
candidate.UpdateFrom(rhsCandidate)
}
}
// // if there was nothing given, perhaps we are creating a new yaml doc