summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-05-06 07:43:42 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-05-06 07:43:42 +0000
commitceedc4819589ea8895ef356d0276bcc2985b9408 (patch)
tree7c21135c554de2387807994030d33b6d36602a52
parent9b42678148cdc32233ff06f06bde71d0d915021a (diff)
parent03500289474cff921868d07732cd99ec12fb7dc9 (diff)
downloadbuildstream-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.py3
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)