mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25011 from notpeter/s3_2014.7_backport
Add s3 to protocols for remote source_hash (2014.7 backport)
This commit is contained in:
commit
a7154e7471
1 changed files with 1 additions and 1 deletions
|
@ -2556,7 +2556,7 @@ def get_managed(
|
|||
if not source_sum:
|
||||
return '', {}, 'Source file {0} not found'.format(source)
|
||||
elif source_hash:
|
||||
protos = ['salt', 'http', 'https', 'ftp', 'swift']
|
||||
protos = ['salt', 'http', 'https', 'ftp', 'swift', 's3']
|
||||
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, saltenv)
|
||||
|
|
Loading…
Add table
Reference in a new issue