mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #25256 from Rafflecopter/patch-2
Dont assume source_hash exists
This commit is contained in:
commit
dee9263bba
@ -3201,7 +3201,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…
Reference in New Issue
Block a user