summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-20 17:40:46 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-22 11:06:09 +0900
commit14cbb4b3c90f5c8feed996c64bcf600a90b9628e (patch)
tree558436b1a3cb2d00102d0551c3bb315164431045
parent0cf6c6bcd8e69554872b05efb267f5530a6b86d4 (diff)
downloadbuildstream-93-creating-a-child-task-can-fail-and-raise-a-stack-trace.tar.gz
_loader.py: Allow environment-nocache on elements.93-creating-a-child-task-can-fail-and-raise-a-stack-trace
Fixes another regression from validating all the loaded node attributes.
-rw-r--r--buildstream/_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_loader.py b/buildstream/_loader.py
index a2e0b4f91..a442dee2c 100644
--- a/buildstream/_loader.py
+++ b/buildstream/_loader.py
@@ -214,7 +214,7 @@ class LoadElement():
# Ensure the root node is valid
_yaml.validate_node(self.data, [
'kind', 'depends', 'sources',
- 'variables', 'environment',
+ 'variables', 'environment', 'environment-nocache',
'config', 'public', 'description',
'arches', 'variants', 'host-arches'
])