Check the effective saltenv for cached archive

This fixes a regression caused by using a saltenv other than `base`.
This commit is contained in:
Erik Johnson 2018-02-07 12:46:26 -06:00 committed by rallytime
parent 1439da8d76
commit 4b6351cda6
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -975,7 +975,7 @@ def extracted(name,
if result['result']:
# Get the path of the file in the minion cache
cached = __salt__['cp.is_cached'](source_match)
cached = __salt__['cp.is_cached'](source_match, saltenv=__env__)
else:
log.debug(
'failed to download %s',