summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-07 19:18:50 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-07 19:30:47 +0900
commit60dbf19ffbc9ec4300acc79689d173af7c830c0c (patch)
treeff5052eba64945acd23e6afdbbc9fe6ebbe65341 /buildstream/plugins/elements
parent3ba544b80f9f268be8ffe62fc8589b30212ec4a2 (diff)
downloadbuildstream-60dbf19ffbc9ec4300acc79689d173af7c830c0c.tar.gz
Complete the work started to allow None as default in _yaml.node_get()
This completes the work which was started in commit 3ba544b80f9f268be8ffe62fc8589b30212ec4a2 which only went half way towards updating all the source code to be consistent and use the new semantic which allows None values.
Diffstat (limited to 'buildstream/plugins/elements')
-rw-r--r--buildstream/plugins/elements/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugins/elements/script.py b/buildstream/plugins/elements/script.py
index f4e705967..7769cd120 100644
--- a/buildstream/plugins/elements/script.py
+++ b/buildstream/plugins/elements/script.py
@@ -43,7 +43,7 @@ class ScriptElement(buildstream.ScriptElement):
def configure(self, node):
for n in self.node_get_member(node, list, 'layout', []):
dst = self.node_subst_member(n, 'destination')
- elm = self.node_subst_member(n, 'element', '') or None
+ elm = self.node_subst_member(n, 'element', None)
self.layout_add(elm, dst)
self.node_validate(node, [