Fixed bug with how configs are merged

This commit is contained in:
Dominik Moritz Roth 2024-08-16 12:54:29 +02:00
parent 3b138bba1e
commit 24b232138f

View File

@ -48,7 +48,8 @@ class Slate():
self.verify = False self.verify = False
def load_config(self, filename, name): def load_config(self, filename, name):
config, stack = self._load_config(filename, name) emptyStack = []
config, stack = self._load_config(filename, name, stack=emptyStack)
print('[i] Merged Configs: ', stack) print('[i] Merged Configs: ', stack)
self._config = copy.deepcopy(config) self._config = copy.deepcopy(config)
self.consume(config, 'vars', {}) self.consume(config, 'vars', {})