diff options
author | Jürg Billeter <j@bitron.ch> | 2016-12-05 11:40:54 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2016-12-05 11:59:24 +0100 |
commit | e0d84a8f227da3535ae89c15450d0818c1b9ab09 (patch) | |
tree | eb9ea756acfabdec165770902089ab905d986257 /buildstream | |
parent | c0374846aa5bf3b978118bfefa716e25cd7018f4 (diff) | |
download | buildstream-e0d84a8f227da3535ae89c15450d0818c1b9ab09.tar.gz |
Loader: Do not raise error for dependency dict without variant
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_loader.py | 2 |
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 |