diff options
author | Jürg Billeter <j@bitron.ch> | 2019-02-10 21:02:16 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-02-10 21:03:46 +0100 |
commit | 354c563d47f5b2e76d4ba9d545104191277eb8ce (patch) | |
tree | d6911b50f7b68851b2c4b00555fb6a2d1e0b5e53 | |
parent | 79fbab61a1bc418c399eb68d92c462c88bdebe35 (diff) | |
download | buildstream-juerg/import.tar.gz |
import.py: Validate config nodejuerg/import
Fixes #662.
-rw-r--r-- | buildstream/plugins/elements/import.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/import.py b/buildstream/plugins/elements/import.py index 5a528916e..3ae979d7a 100644 --- a/buildstream/plugins/elements/import.py +++ b/buildstream/plugins/elements/import.py @@ -42,6 +42,10 @@ class ImportElement(Element): BST_VIRTUAL_DIRECTORY = True def configure(self, node): + self.node_validate(node, [ + 'source', 'target' + ]) + self.source = self.node_subst_member(node, 'source') self.target = self.node_subst_member(node, 'target') |