mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Throw an error rather than just logging for missing SLS, Fix #5998
This commit is contained in:
parent
1106218547
commit
7f871f76c0
@ -2214,7 +2214,7 @@ class BaseHighState(object):
|
|||||||
statefiles = fnmatch.filter(self.avail[env], sls_match)
|
statefiles = fnmatch.filter(self.avail[env], sls_match)
|
||||||
if not statefiles:
|
if not statefiles:
|
||||||
# No matching sls file was found! Output an error
|
# No matching sls file was found! Output an error
|
||||||
log.error(
|
all_errors.append(
|
||||||
'No matching sls found for \'{0}\' in env \'{1}\''
|
'No matching sls found for \'{0}\' in env \'{1}\''
|
||||||
.format(sls_match, env)
|
.format(sls_match, env)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user