mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix #3405
This commit is contained in:
parent
b345b73d50
commit
854f317bb4
@ -1331,7 +1331,7 @@ def manage_file(name,
|
|||||||
# If the downloaded file came from a non salt server source verify
|
# If the downloaded file came from a non salt server source verify
|
||||||
# that it matches the intended sum value
|
# that it matches the intended sum value
|
||||||
if urlparse(source).scheme != 'salt':
|
if urlparse(source).scheme != 'salt':
|
||||||
dl_sum = get_hash(name, source_sum['hash_type'])
|
dl_sum = get_hash(sfn, source_sum['hash_type'])
|
||||||
if dl_sum != source_sum['hsum']:
|
if dl_sum != source_sum['hsum']:
|
||||||
ret['comment'] = ('File sum set for file {0} of {1} does '
|
ret['comment'] = ('File sum set for file {0} of {1} does '
|
||||||
'not match real sum of {2}'
|
'not match real sum of {2}'
|
||||||
|
Loading…
Reference in New Issue
Block a user