summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorTristan Maat <tm@tlater.net>2018-04-06 12:16:52 +0000
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-04-07 10:05:10 +0000
commit3ba544b80f9f268be8ffe62fc8589b30212ec4a2 (patch)
tree7d852ddeb05a06d0744506dadd8d4280fede7830 /buildstream/plugin.py
parent2ca11fde3b63f6daa6d58ece4155a6d42ed92b34 (diff)
downloadbuildstream-3ba544b80f9f268be8ffe62fc8589b30212ec4a2.tar.gz
Allow 'None' as a default_value for _yaml.node_get
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index fc81a5940..e6a6b60fe 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -194,7 +194,7 @@ class Plugin():
provenance = _yaml.node_get_provenance(node, key=member_name)
return str(provenance)
- def node_get_member(self, node, expected_type, member_name, default=None):
+ def node_get_member(self, node, expected_type, member_name, default=utils._sentinel):
"""Fetch the value of a node member, raising an error if the value is
missing or incorrectly typed.