diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-09-07 15:40:57 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-09-14 11:05:18 +0100 |
commit | d56f472ddc6b6ff364aaa74cf1dac30be0d774de (patch) | |
tree | 9d21e68c469433f33387ab9639bf39627dcade65 /buildstream/plugins/sources/local.py | |
parent | 80e53b1a3dd7bf21b55da86b7a982c3f3f5827a2 (diff) | |
download | buildstream-d56f472ddc6b6ff364aaa74cf1dac30be0d774de.tar.gz |
Add source plugin node validations
Diffstat (limited to 'buildstream/plugins/sources/local.py')
-rw-r--r-- | buildstream/plugins/sources/local.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/local.py b/buildstream/plugins/sources/local.py index fef0d693a..9f02b0ed4 100644 --- a/buildstream/plugins/sources/local.py +++ b/buildstream/plugins/sources/local.py @@ -44,6 +44,8 @@ class LocalSource(Source): def configure(self, node): project = self.get_project() + self.node_validate(node, ['path'] + Source.COMMON_CONFIG_KEYS) + self.path = self.node_get_member(node, str, 'path') self.fullpath = os.path.join(project.directory, self.path) |