1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Comment for why we have checksum and checksum_s

This commit is contained in:
Toshio Kuratomi 2015-02-02 10:19:57 -08:00
parent 5eafa1e7c3
commit e702a28496

View file

@ -66,6 +66,7 @@ def secure_hash(filename, hash_func=sha1):
raise errors.AnsibleError("error while accessing the file %s, error was: %s" % (filename, e))
return digest.hexdigest()
# The checksum algorithm must match with the algorithm in ShellModule.checksum() method
checksum = secure_hash
checksum_s = secure_hash_s