mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Revert "Fix jinja search path for local file_client"
This commit is contained in:
parent
e14d524b53
commit
1e71344a98
@ -64,7 +64,10 @@ class SaltCacheLoader(BaseLoader):
|
||||
self.opts = opts
|
||||
self.saltenv = saltenv
|
||||
self.encoding = encoding
|
||||
self.searchpath = [path.join(opts['cachedir'], 'files', saltenv)]
|
||||
if opts.get('file_client', 'remote') == 'local':
|
||||
self.searchpath = opts['file_roots'][saltenv]
|
||||
else:
|
||||
self.searchpath = [path.join(opts['cachedir'], 'files', saltenv)]
|
||||
log.debug('Jinja search path: {0!r}'.format(self.searchpath))
|
||||
self._file_client = None
|
||||
self.cached = []
|
||||
|
Loading…
Reference in New Issue
Block a user