diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-13 20:21:48 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:02 +0000 |
commit | 57f9715874ffaf92b8125b07a3a88415cda02baa (patch) | |
tree | 1f4eb1a10648e61348da433a8920dd4a289b4a3b /src/buildstream/plugins | |
parent | eafcee4b97504f1bb65c8a62439a25e38d0e6137 (diff) | |
download | buildstream-57f9715874ffaf92b8125b07a3a88415cda02baa.tar.gz |
element: Remove `node_get_member` and all references to it
This can now be done more easily with the Node api
Diffstat (limited to 'src/buildstream/plugins')
-rw-r--r-- | src/buildstream/plugins/sources/bzr.py | 2 | ||||
-rw-r--r-- | src/buildstream/plugins/sources/pip.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/plugins/sources/bzr.py b/src/buildstream/plugins/sources/bzr.py index 082d11dec..28bea1415 100644 --- a/src/buildstream/plugins/sources/bzr.py +++ b/src/buildstream/plugins/sources/bzr.py @@ -93,7 +93,7 @@ class BzrSource(Source): return Consistency.RESOLVED def load_ref(self, node): - self.ref = self.node_get_member(node, str, 'ref', None) + self.ref = node.get_str('ref', None) def get_ref(self): return self.ref diff --git a/src/buildstream/plugins/sources/pip.py b/src/buildstream/plugins/sources/pip.py index db0537497..816b9e95b 100644 --- a/src/buildstream/plugins/sources/pip.py +++ b/src/buildstream/plugins/sources/pip.py @@ -150,7 +150,7 @@ class PipSource(Source): return self.ref def load_ref(self, node): - self.ref = self.node_get_member(node, str, 'ref', None) + self.ref = node.get_str('ref', None) def set_ref(self, ref, node): node['ref'] = self.ref = ref |