mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25392 from rallytime/bp-25256
Back-port #25256 to 2015.5
This commit is contained in:
commit
008e3295c6
1 changed files with 1 additions and 1 deletions
|
@ -2804,7 +2804,7 @@ def get_managed(
|
|||
if template and source:
|
||||
# check if we have the template cached
|
||||
template_dest = __salt__['cp.is_cached'](source, saltenv)
|
||||
if template_dest:
|
||||
if template_dest and source_hash:
|
||||
comps = source_hash.split('=')
|
||||
cached_template_sum = get_hash(template_dest, form=source_sum['hash_type'])
|
||||
if cached_template_sum == source_sum['hsum']:
|
||||
|
|
Loading…
Add table
Reference in a new issue