Skip to content

Commit 14b8669

Browse files
fixing commit d7338e9 -- broke deletion pipeline
1 parent 6513295 commit 14b8669

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/tree/sharedEntryAttributes.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,9 @@ func (s *sharedEntryAttributes) validateMandatoryWithKeys(level int, attribute s
10071007
// if not the path exists in the tree and is not to be deleted, then lookup in the paths index of the store
10081008
// and see if such path exists, if not raise the error
10091009
if !(existsInTree && v.remainsToExist()) {
1010-
errchan <- fmt.Errorf("error mandatory child %s does not exist, path: %s", attribute, s.Path())
1010+
if !s.treeContext.PathExists(append(s.Path(), attribute)) {
1011+
errchan <- fmt.Errorf("error mandatory child %s does not exist, path: %s", attribute, s.Path())
1012+
}
10111013
}
10121014
return
10131015
}

0 commit comments

Comments
 (0)