diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-07-03 18:01:30 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | 8c9f41922ad16f8a031ac612bb35e493e8581380 (patch) | |
tree | cebc4afe2d0238033362905a99400d4d2824d7dc /src/buildstream/element.py | |
parent | d8466183f77c75bbd7ad27c7cbf5e58189945be1 (diff) | |
download | buildstream-8c9f41922ad16f8a031ac612bb35e493e8581380.tar.gz |
_yaml: Remove 'node_validate' and replace by 'MappingNode.validate_keys'
- adapt all call sites to use the new API
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r-- | src/buildstream/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 39900cffc..35d25562d 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -2649,7 +2649,7 @@ class Element(Plugin): sandbox_config._assert_fully_composited() # Sandbox config, unlike others, has fixed members so we should validate them - _yaml.node_validate(sandbox_config, ['build-uid', 'build-gid', 'build-os', 'build-arch']) + sandbox_config.validate_keys(['build-uid', 'build-gid', 'build-os', 'build-arch']) build_arch = sandbox_config.get_str('build-arch', default=None) if build_arch: |