Merge pull request #36797 from cachedout/issue_36579

Error on reaction with missing SLS file
This commit is contained in:
Mike Place 2016-10-06 20:19:27 +09:00 committed by GitHub
commit a1d59f4d2f

View file

@ -59,8 +59,10 @@ class Reactor(salt.utils.process.SignalHandlingMultiprocessingProcess, salt.stat
if glob_ref.startswith('salt://'):
glob_ref = self.minion.functions['cp.cache_file'](glob_ref)
for fn_ in glob.glob(glob_ref):
globbed_ref = glob.glob(glob_ref)
if not globbed_ref:
log.error('Can not render SLS {0} for tag {1}. File missing or not found.'.format(glob_ref, tag))
for fn_ in globbed_ref:
try:
res = self.render_template(
fn_,