This commit is contained in:
jinm 2017-04-06 10:42:30 -04:00 committed by rallytime
parent fd757fffa3
commit 8280e5256e

View file

@ -3795,7 +3795,7 @@ def get_managed(
# but `cached_sum == source_sum['hsum']` is elliptical as prev if
sfn = cached_dest
source_sum = {'hsum': cached_sum, 'hash_type': htype}
elif cached_sum != source_sum['hsum']:
elif cached_sum != source_sum.get('hsum', __opts__['hash_type']):
cache_refetch = True
# If we didn't have the template or remote file, let's get it