diff options
| author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-06-14 21:58:20 +0900 |
|---|---|---|
| committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-06-14 21:58:20 +0900 |
| commit | 98ac6e8cfc9f6ddd31c072b2a84b18bb2309a493 (patch) | |
| tree | 76b63cdeca6aadb1ddba4042305030ffc589f3b1 /buildstream/plugins/elements/script.py | |
| parent | 41fef6b8ceaef9fa14728a14be9b9c6954ef0410 (diff) | |
| download | buildstream-98ac6e8cfc9f6ddd31c072b2a84b18bb2309a493.tar.gz | |
script.py: Allow layout members without an element.
Diffstat (limited to 'buildstream/plugins/elements/script.py')
| -rw-r--r-- | buildstream/plugins/elements/script.py | 2 |
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 = [] |
