Merge pull request #30184 from rallytime/bp-30166

Back-port #30166 to 2015.5
This commit is contained in:
Mike Place 2016-01-13 11:27:36 -07:00
commit f037fd9c27

View file

@ -658,6 +658,10 @@ def hash_file(path, saltenv='base', env=None):
# Backwards compatibility
saltenv = env
path, senv = salt.utils.url.split_env(path)
if senv:
saltenv = senv
_mk_client()
return __context__['cp.fileclient'].hash_file(path, saltenv)