Add file as supported protocol for file source_hash. Fixes #23764.

Conflicts:
	salt/modules/file.py
This commit is contained in:
Peter Tripp 2015-06-26 16:21:45 -07:00 committed by Axton Malsbury
parent ad07dc1e27
commit 4b9d7426cc

View file

@ -2933,7 +2933,7 @@ def get_managed(
elif source.startswith('/'):
source_sum = get_hash(source)
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)