fix second run problems with pkg.installed using sources

Fixes #32276
This commit is contained in:
Marc Thomas 2016-07-15 14:11:11 +02:00
parent aaa6f7d80a
commit 2c0fc919b3

View File

@ -431,7 +431,7 @@ def _find_install_targets(name=None,
# package's name and version
err = 'Unable to cache {0}: {1}'
try:
cached_path = __salt__['cp.cache_file'](val)
cached_path = __salt__['cp.cache_file'](val, saltenv=kwargs['saltenv'])
except CommandExecutionError as exc:
problems.append(err.format(val, exc))
continue