summaryrefslogtreecommitdiff
path: root/buildstream/_variables.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2019-03-25 15:08:37 +0000
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2019-03-27 21:26:07 +0000
commit3816dcf8901b06f2b9c0153e5b5fe394acf104a5 (patch)
treee380f6c5386d97bc03707ccf8f20871b683e3b0b /buildstream/_variables.py
parent1e698622caee2da202a2511bbf41f476224d4cb8 (diff)
downloadbuildstream-3816dcf8901b06f2b9c0153e5b5fe394acf104a5.tar.gz
The new YAML World Order
Replace YAML internals with a new Node type, and refactor everything to use it cleanly. This work was also by James Ennis <james.ennis@codethink.co.uk> Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'buildstream/_variables.py')
-rw-r--r--buildstream/_variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_variables.py b/buildstream/_variables.py
index 436b80962..74314cf1f 100644
--- a/buildstream/_variables.py
+++ b/buildstream/_variables.py
@@ -118,7 +118,7 @@ class Variables():
# Initialize it as a string as all variables are processed as strings.
#
if _yaml.node_get(node, bool, 'notparallel', default_value=False):
- node['max-jobs'] = str(1)
+ _yaml.node_set(node, 'max-jobs', str(1))
ret = {}
for key, value in _yaml.node_items(node):