diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-05-08 09:35:27 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-05-11 11:30:36 +0000 |
commit | bc0d564f8a7a4b67e1cb8b5a49e9e9e0470da250 (patch) | |
tree | d34e9e0bc752d525df25663e214244647aa763ae /src/buildstream | |
parent | 4adcb0583375bd533c58b5cd9cf827f62659cc08 (diff) | |
download | buildstream-bc0d564f8a7a4b67e1cb8b5a49e9e9e0470da250.tar.gz |
element.py: Fix documentation around `node` usagebschubert/fix-node-docs
Diffstat (limited to 'src/buildstream')
-rw-r--r-- | src/buildstream/element.py | 2 | ||||
-rw-r--r-- | src/buildstream/plugin.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 862f00962..d8c0f6f79 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -517,7 +517,7 @@ class Element(Plugin): # Expect a string 'name' in 'node', substituting any # variables in the returned string - name = self.node_subst_vars(node.get_str('name')) + name = self.node_subst_vars(node.get_scalar('name')) """ try: return self.__variables.subst(node.as_str()) diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index ff0604811..dfb54332f 100644 --- a/src/buildstream/plugin.py +++ b/src/buildstream/plugin.py @@ -304,7 +304,7 @@ class Plugin: .. note:: For Elements, when variable substitution is desirable, the - :func:`Element.node_subst_member() <buildstream.element.Element.node_subst_member>` + :func:`Element.node_subst_vars() <buildstream.element.Element.node_subst_vars>` method can be used. """ raise ImplError( |