Merge pull request #25191 from basepi/fix.fileclient.is_cached

Add extrndest back to fileclient.is_cached in 2015.5
This commit is contained in:
Colton Myers 2015-07-06 13:35:24 -06:00
commit 01ed062ca7

View file

@ -365,11 +365,14 @@ class Client(object):
self.opts['cachedir'], 'localfiles', path.lstrip('|/'))
filesdest = os.path.join(
self.opts['cachedir'], 'files', saltenv, path.lstrip('|/'))
extrndest = self._extrn_path(path, saltenv)
if os.path.exists(filesdest):
return salt.utils.url.escape(filesdest) if escaped else filesdest
elif os.path.exists(localsfilesdest):
return salt.utils.url.escape(localsfilesdest) if escaped else localsfilesdest
elif os.path.exists(extrndest):
return extrndest
return ''