summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-07-04 09:09:23 +0000
committerBenjamin Schubert <contact@benschubert.me>2019-07-04 09:09:23 +0000
commitc7a7e44838a0df64088924caecb9fea1ef9e91af (patch)
tree043b285ebbbc4b3574c04ae590d56a28ec4fbd38 /src/buildstream/element.py
parentb4b0f79f6e09a89f1eee785702f47e5975e41bf7 (diff)
parent482221aaacf690b73d67a8c1ec4eb15686abfd5b (diff)
downloadbuildstream-c7a7e44838a0df64088924caecb9fea1ef9e91af.tar.gz
Merge branch 'bschubert/rework-node-creations' into 'bschubert/new-node-api'
Rework synthetic node creation See merge request BuildStream/buildstream!1447
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index a4496e192..280eeb8f1 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2515,7 +2515,7 @@ class Element(Plugin):
# Defaults are loaded once per class and then reused
#
if cls.__defaults is None:
- defaults = _yaml.new_empty_node()
+ defaults = _yaml.Node.from_dict({})
if plugin_conf is not None:
# Load the plugin's accompanying .yaml file if one was provided
@@ -2550,7 +2550,7 @@ class Element(Plugin):
default_env = cls.__defaults.get_mapping("environment", default={})
if meta.is_junction:
- environment = _yaml.new_empty_node()
+ environment = _yaml.Node.from_dict({})
else:
environment = project.base_environment.copy()
@@ -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
})