mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Reference the current salt environment. Thanks @hvnsweeting!
This commit is contained in:
parent
759c55fadc
commit
340ab1e482
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user