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
parent 43a45b42c3
commit 6cc5cd9b8a
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

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',