diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-03-29 12:13:34 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-03-29 12:13:34 +0000 |
commit | 4c8f89768ae31c609acafb9feb5355e788ccfcb0 (patch) | |
tree | 00e6cec28815b6b373763af97b88346e27ed2692 | |
parent | d20165a62536e526deb0fc32819e1d3776e75590 (diff) | |
download | buildstream-jennis/tweak_node_get.tar.gz |
_yaml.py: Tweak node_get so it can handle indices=[]jennis/tweak_node_get
-rw-r--r-- | buildstream/_yaml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py index 1512a3cb8..3c75b397e 100644 --- a/buildstream/_yaml.py +++ b/buildstream/_yaml.py @@ -451,7 +451,7 @@ def node_get(node, expected_type, key, indices=None, *, default_value=_sentinel, assert type(node) is Node path = key - if indices is None: + if indices: if default_value is _sentinel: value = node[0].get(key, Node(default_value, None, 0, 0)) else: |