From 354c563d47f5b2e76d4ba9d545104191277eb8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Sun, 10 Feb 2019 21:02:16 +0100 Subject: import.py: Validate config node Fixes #662. --- buildstream/plugins/elements/import.py | 4 ++++ 1 file changed, 4 insertions(+) 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') -- cgit v1.2.1