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:
parent
5eafa1e7c3
commit
e702a28496
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue