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

Revert "Add file as supported protocol for file source_hash. Fixes #25750"
This commit is contained in:
Justin Findlay 2015-08-05 09:32:01 -06:00
commit bd14d85636

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', 'file')
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)