diff options
Diffstat (limited to 'buildstream/element.py')
-rw-r--r-- | buildstream/element.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 5ecc25ab2..b3f4d5518 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -894,10 +894,7 @@ class Element(Plugin): (str): The resolved value for *varname*, or None if no variable was declared with the given name. """ - if varname in self.__variables.variables: - return self.__variables.variables[varname] - - return None + return self.__variables.flat.get(varname) def batch_prepare_assemble(self, flags, *, collect=None): """ Configure command batching across prepare() and assemble() |