diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-09 14:22:35 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:02 +0000 |
commit | fcef3658433f74a2f396ed353bb3534f0001f3d8 (patch) | |
tree | a3c74347254332f06583fbdc1c6a6fc4411d21aa /tests/elements | |
parent | f6616bc9d51a791aba1e177c61e27f768bebd9cb (diff) | |
download | buildstream-fcef3658433f74a2f396ed353bb3534f0001f3d8.tar.gz |
_yaml: add 'get_mapping()' to MappingNode
This allows to get a mapping node from another 'MappingNode',
replacing 'node_get(my_mapping, key, type=dict)'
Also changes all places where 'node_get' was called like that by
the new API.
Diffstat (limited to 'tests/elements')
-rw-r--r-- | tests/elements/filter/basic/element_plugins/dynamic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/elements/filter/basic/element_plugins/dynamic.py b/tests/elements/filter/basic/element_plugins/dynamic.py index c6d128b72..b4a556244 100644 --- a/tests/elements/filter/basic/element_plugins/dynamic.py +++ b/tests/elements/filter/basic/element_plugins/dynamic.py @@ -5,7 +5,7 @@ from buildstream import Element, Scope class DynamicElement(Element): def configure(self, node): self.node_validate(node, ['split-rules']) - self.split_rules = self.node_get_member(node, dict, 'split-rules') + self.split_rules = node.get_mapping('split-rules') def preflight(self): pass |