mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix "variable referenced before assignment" error
This commit is contained in:
parent
03b9ad2727
commit
81a4660cad
@ -1936,6 +1936,7 @@ class BaseHighState(object):
|
||||
high data structure.
|
||||
'''
|
||||
highstate = {}
|
||||
all_errors = []
|
||||
for env, states in matches.items():
|
||||
mods = set()
|
||||
for sls_match in states:
|
||||
@ -1943,9 +1944,10 @@ class BaseHighState(object):
|
||||
state, errors = self.render_state(sls, env, mods, matches)
|
||||
if state:
|
||||
self.merge_included_states(highstate, state, errors)
|
||||
all_errors.extend(errors)
|
||||
|
||||
self.clean_duplicate_extends(highstate)
|
||||
return highstate, errors
|
||||
return highstate, all_errors
|
||||
|
||||
|
||||
def clean_duplicate_extends(self, highstate):
|
||||
|
Loading…
Reference in New Issue
Block a user