Skip to content
Snippets Groups Projects
Commit 480bd941 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

BUG: previous commit was a mistake

reverting back
parent 6e18fcee
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,10 @@ class FileTree(object):
"""
All tree variables including those from the parent tree
"""
without_none = {key: value for key, value in self.variables.items() if value is not None}
if self.parent is None:
return without_none
return self.variables
res = self.parent.all_variables
res.update(without_none)
res.update(self.variables)
return res
def get_variable(self, name: str) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment