summaryrefslogtreecommitdiff
path: root/buildstream/_variables.py
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-05-03 20:40:49 +0200
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-05-06 06:47:17 +0000
commit451b05fc5209e36a7c044c7220da41dfe9e80e86 (patch)
tree174d99eaf79d5891a712770194666b49f831cf75 /buildstream/_variables.py
parent494f18fe19fa857b6e423129c1f4d83500c6d75f (diff)
downloadbuildstream-451b05fc5209e36a7c044c7220da41dfe9e80e86.tar.gz
Fix provenance in error message for undefined variables.
Diffstat (limited to 'buildstream/_variables.py')
-rw-r--r--buildstream/_variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_variables.py b/buildstream/_variables.py
index 3d84d79e2..b4c920a71 100644
--- a/buildstream/_variables.py
+++ b/buildstream/_variables.py
@@ -87,7 +87,7 @@ class Variables():
token = match.group(0)
varname = match.group(1)
- value = _yaml.node_get(variables, str, varname)
+ value = _yaml.node_get(variables, str, varname, default_value=None)
if value is not None:
# We have to check if the inner string has variables
# and return unmatches for those