mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30184 from rallytime/bp-30166
Back-port #30166 to 2015.5
This commit is contained in:
commit
f037fd9c27
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue