mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #20357 from cachedout/pillar_compile
Don't try to compile empty pillars
This commit is contained in:
commit
bf8d519221
@ -217,12 +217,14 @@ class Pillar(object):
|
||||
]
|
||||
else:
|
||||
for saltenv in self._get_envs():
|
||||
tops[saltenv].append(
|
||||
compile_template(
|
||||
self.client.cache_file(
|
||||
top = self.client.cache_file(
|
||||
self.opts['state_top'],
|
||||
saltenv
|
||||
),
|
||||
)
|
||||
if top:
|
||||
tops[saltenv].append(
|
||||
compile_template(
|
||||
top,
|
||||
self.rend,
|
||||
self.opts['renderer'],
|
||||
saltenv=saltenv
|
||||
|
Loading…
Reference in New Issue
Block a user