summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-03 10:28:50 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-07-03 16:57:25 +0000
commitf05f91725db54c62f79be11ea890f1ed5556db00 (patch)
tree8d914a3748c5c926e383b1a9689c8b3709f4e662 /src/buildstream/element.py
parentb4b0f79f6e09a89f1eee785702f47e5975e41bf7 (diff)
downloadbuildstream-f05f91725db54c62f79be11ea890f1ed5556db00.tar.gz
_yaml: Add a 'from_dict' on Node to create new nodes from dicts
This new methods is here to replace the previous 'new_node_from_dict' that will be moved to a private method. Adapt all call sites to use the new 'from_dict' method.
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index a4496e192..770f5df42 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2633,7 +2633,7 @@ class Element(Plugin):
@classmethod
def __extract_sandbox_config(cls, project, meta):
if meta.is_junction:
- sandbox_config = _yaml.new_node_from_dict({
+ sandbox_config = _yaml.Node.from_dict({
'build-uid': 0,
'build-gid': 0
})