mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #19640 from TronPaul/s3_source_hash
Add s3 to protocols for remote source_hash
This commit is contained in:
commit
2c065ac5b9
@ -2666,7 +2666,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 _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…
Reference in New Issue
Block a user