mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36797 from cachedout/issue_36579
Error on reaction with missing SLS file
This commit is contained in:
commit
a1d59f4d2f
1 changed files with 4 additions and 2 deletions
|
@ -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_,
|
||||
|
|
Loading…
Add table
Reference in a new issue