mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
reactor: ensure glob_ref is a string
When path does not exist, cp.cache_file returns False, which will cause a traceback when we attempt to glob that path.
This commit is contained in:
parent
2e443d79a3
commit
fbc4d2a2c4
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Reactor(salt.utils.process.SignalHandlingMultiprocessingProcess, salt.stat
|
|||
react = {}
|
||||
|
||||
if glob_ref.startswith('salt://'):
|
||||
glob_ref = self.minion.functions['cp.cache_file'](glob_ref)
|
||||
glob_ref = self.minion.functions['cp.cache_file'](glob_ref) or ''
|
||||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue