summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-06-14 21:58:20 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-06-14 21:58:20 +0900
commit98ac6e8cfc9f6ddd31c072b2a84b18bb2309a493 (patch)
tree76b63cdeca6aadb1ddba4042305030ffc589f3b1
parent41fef6b8ceaef9fa14728a14be9b9c6954ef0410 (diff)
downloadbuildstream-98ac6e8cfc9f6ddd31c072b2a84b18bb2309a493.tar.gz
script.py: Allow layout members without an element.
-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 0fa06c802..f34aff7b8 100644
--- a/buildstream/plugins/elements/script.py
+++ b/buildstream/plugins/elements/script.py
@@ -37,7 +37,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')
+ elm = self.node_subst_member(n, 'element', default_value='') or None
self.layout_add(elm, dst)
cmds = []