diff options
author | bst-marge-bot <marge-bot@buildstream.build> | 2020-05-06 07:43:42 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-05-06 07:43:42 +0000 |
commit | ceedc4819589ea8895ef356d0276bcc2985b9408 (patch) | |
tree | 7c21135c554de2387807994030d33b6d36602a52 | |
parent | 9b42678148cdc32233ff06f06bde71d0d915021a (diff) | |
parent | 03500289474cff921868d07732cd99ec12fb7dc9 (diff) | |
download | buildstream-ceedc4819589ea8895ef356d0276bcc2985b9408.tar.gz |
Merge branch 'tristan/validate-junction-config' into 'master'
junction.py: Call node.validate_keys() in Plugin.configure()
See merge request BuildStream/buildstream!1899
-rw-r--r-- | src/buildstream/plugins/elements/junction.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/junction.py b/src/buildstream/plugins/elements/junction.py index 917482d63..86d1de8f8 100644 --- a/src/buildstream/plugins/elements/junction.py +++ b/src/buildstream/plugins/elements/junction.py @@ -172,6 +172,9 @@ class JunctionElement(Element): BST_FORBID_RDEPENDS = True def configure(self, node): + + node.validate_keys(["path", "options", "target", "cache-junction-elements", "ignore-junction-remotes"]) + self.path = node.get_str("path", default="") self.options = node.get_mapping("options", default={}) self.target = node.get_str("target", default=None) |