This commit is contained in:
Thomas S Hatch 2013-01-29 15:19:31 -07:00
parent b345b73d50
commit 854f317bb4

View File

@ -1331,7 +1331,7 @@ def manage_file(name,
# If the downloaded file came from a non salt server source verify
# that it matches the intended sum value
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']:
ret['comment'] = ('File sum set for file {0} of {1} does '
'not match real sum of {2}'