From c86de17c83ef09d51dd6deddf65c31c28a16eb73 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Thu, 27 Jun 2019 14:49:09 +0100 Subject: _yaml: Remove 'node_find_target' and replace by 'MappingNode.find' --- src/buildstream/source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildstream/source.py') diff --git a/src/buildstream/source.py b/src/buildstream/source.py index 89655e15b..479b28966 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -962,9 +962,9 @@ class Source(Plugin): # Get the path to whatever changed if action == 'add': - path = _yaml.node_find_target(toplevel_node, node) + path = toplevel_node._find(node) else: - full_path = _yaml.node_find_target(toplevel_node, node.get_node(key)) + full_path = toplevel_node._find(node.get_node(key)) # We want the path to the node containing the key, not to the key path = full_path[:-1] -- cgit v1.2.1