diff options
author | Tristan Maat <tm@tlater.net> | 2018-04-06 12:16:52 +0000 |
---|---|---|
committer | Tristan Maat <tm@tlater.net> | 2018-04-06 15:01:14 +0000 |
commit | 55aedba17f8a8ac676fe18cbdd2d4b6fef202eda (patch) | |
tree | 584f4a40d8a64f656f5a4209403e17d899d1d9a7 /buildstream/plugin.py | |
parent | 23edfe5d961136c2a22fd4c0939bb9dc0e9e3a14 (diff) | |
download | buildstream-node-get-default.tar.gz |
Allow 'None' as a default_value for _yaml.node_getnode-get-default
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r-- | buildstream/plugin.py | 2 |
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. |