Instantiate the SaltCacheLoader's fileclient in the __init__

This fixes an edge case when orchestration attempts to compile pillar
data before making any other fileclient requests.
This commit is contained in:
Erik Johnson 2018-02-21 17:13:50 -06:00
parent f9a6c86e21
commit 9644579cd0
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -63,9 +63,11 @@ class SaltCacheLoader(BaseLoader):
else:
self.searchpath = [path.join(opts['cachedir'], 'files', saltenv)]
log.debug('Jinja search path: %s', self.searchpath)
self._file_client = None
self.cached = []
self.pillar_rend = pillar_rend
self._file_client = None
# Instantiate the fileclient
self.file_client()
def file_client(self):
'''