Error on reaction with missing SLS file

Closes #36579
This commit is contained in:
Mike Place 2016-10-05 23:50:42 +09:00
parent 90cca6b135
commit 6ce4653fa3
No known key found for this signature in database
GPG key ID: 9136F4F13705CFD3

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_,