Throw an error rather than just logging for missing SLS, Fix #5998

This commit is contained in:
Colton Myers 2013-10-22 14:51:54 -06:00
parent 1106218547
commit 7f871f76c0

View File

@ -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)
) )