summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-06 17:36:15 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-07 16:38:57 +0000
commitfc1503a84ba33dffb7034d4522458facd1178a09 (patch)
treef4c167ecff1460bda363f45941d57a707d560aab /src/buildstream/element.py
parent20747fc2a275c61d4aa135831e3967aca2081267 (diff)
downloadbuildstream-fc1503a84ba33dffb7034d4522458facd1178a09.tar.gz
_yaml: Restrict parameter of node_items and node_keys to be 'Node'
In order to move to a cleaner Node api, we need to ensure that what we are treating is correctly set up as being Nodes.
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 84c8f20ff..a60546084 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -1986,7 +1986,7 @@ class Element(Plugin):
flags |= SandboxFlags.NETWORK_ENABLED | SandboxFlags.INHERIT_UID
# Apply project defined environment vars to set for a shell
- for key, value in _yaml.node_items(shell_environment):
+ for key, value in shell_environment.items():
environment[key] = value
# Setup any requested bind mounts