Reference the current salt environment. Thanks @hvnsweeting!

This commit is contained in:
Pedro Algarvio 2013-11-07 13:47:53 +00:00
parent 759c55fadc
commit 340ab1e482

View File

@ -1801,7 +1801,7 @@ def get_managed(
protos = ['salt', 'http', 'ftp']
if salt._compat.urlparse(source_hash).scheme in protos:
# The source_hash is a file on a server
hash_fn = __salt__['cp.cache_file'](source_hash)
hash_fn = __salt__['cp.cache_file'](source_hash, saltenv)
if not hash_fn:
return '', {}, 'Source hash file {0} not found'.format(
source_hash)