summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2016-12-05 11:40:54 +0100
committerJürg Billeter <j@bitron.ch>2016-12-05 11:59:24 +0100
commite0d84a8f227da3535ae89c15450d0818c1b9ab09 (patch)
treeeb9ea756acfabdec165770902089ab905d986257 /buildstream
parentc0374846aa5bf3b978118bfefa716e25cd7018f4 (diff)
downloadbuildstream-e0d84a8f227da3535ae89c15450d0818c1b9ab09.tar.gz
Loader: Do not raise error for dependency dict without variant
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_loader.py b/buildstream/_loader.py
index 0778df17a..057fee065 100644
--- a/buildstream/_loader.py
+++ b/buildstream/_loader.py
@@ -371,7 +371,7 @@ def extract_depends_from_node(owner, data, stack=False):
elif isinstance(dep, dict):
# Make variant optional, for this we set it to None after
- variant = _yaml.node_get(dep, str, Symbol.VARIANT, "")
+ variant = _yaml.node_get(dep, str, Symbol.VARIANT, default_value="")
if not variant:
variant = None