Revert "Fix jinja search path for local file_client"

This commit is contained in:
Thomas S Hatch 2014-12-09 14:34:45 -07:00
parent e14d524b53
commit 1e71344a98

View File

@ -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 = []