Merge pull request #26020 from alekti/merge-pull-25750-to-2015.5

Correctly resolve conflict merging pull 25750 to 2015.5
This commit is contained in:
Justin Findlay 2015-08-05 08:16:58 -06:00
commit 5e17c5d230

View file

@ -2935,7 +2935,7 @@ def get_managed(
file_sum = get_hash(source, form='sha256')
source_sum = {'hsum': file_sum, 'hash_type': 'sha256'}
elif source_hash:
protos = ('salt', 'http', 'https', 'ftp', 'swift', 's3')
protos = ('salt', 'http', 'https', 'ftp', 'swift', 's3', 'file')
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)