From 8c9f41922ad16f8a031ac612bb35e493e8581380 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Wed, 3 Jul 2019 18:01:30 +0100 Subject: _yaml: Remove 'node_validate' and replace by 'MappingNode.validate_keys' - adapt all call sites to use the new API --- tests/elements/filter/basic/element_plugins/dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/elements') diff --git a/tests/elements/filter/basic/element_plugins/dynamic.py b/tests/elements/filter/basic/element_plugins/dynamic.py index 1ec7d4dd3..18e52c4b6 100644 --- a/tests/elements/filter/basic/element_plugins/dynamic.py +++ b/tests/elements/filter/basic/element_plugins/dynamic.py @@ -4,7 +4,7 @@ from buildstream import Element, Scope # Copies files from the dependent element but inserts split-rules using dynamic data class DynamicElement(Element): def configure(self, node): - self.node_validate(node, ['split-rules']) + node.validate_keys(['split-rules']) self.split_rules = node.get_mapping('split-rules') def preflight(self): -- cgit v1.2.1