summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-01 19:06:21 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-01 19:17:13 +0900
commit2d664a9a47c55f5adb8f7d9694fc4198067411ea (patch)
treee05f1e6b5f06312f986a170b1f29d7502617c863 /buildstream/plugin.py
parent717ef5e35deda4637d0b74a62a3718b83e5471b1 (diff)
downloadbuildstream-2d664a9a47c55f5adb8f7d9694fc4198067411ea.tar.gz
_yaml.py: Fixing inconsistently named API _yaml.validate_node()
All of the _yaml APIs which deal with a node (dictionary loaded from YAML) are named _yaml.node_foo(), _yaml.node_bar(), _yaml.node_baz() etc, except for this one glaring exception. Also added a missing internal API documenting comment for _yaml.node_validate() Also updated all callers to _yaml.validate_node() to now call _yaml.node_validate().
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 e6a21cbe9..93bac3465 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -280,7 +280,7 @@ class Plugin():
])
"""
- _yaml.validate_node(node, valid_keys)
+ _yaml.node_validate(node, valid_keys)
def node_get_list_element(self, node, expected_type, member_name, indices):
"""Fetch the value of a list element from a node member, raising an error if the