Comment for why we have checksum and checksum_s

pull/8091/merge
Toshio Kuratomi 10 years ago
parent 5eafa1e7c3
commit e702a28496

@ -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)) raise errors.AnsibleError("error while accessing the file %s, error was: %s" % (filename, e))
return digest.hexdigest() return digest.hexdigest()
# The checksum algorithm must match with the algorithm in ShellModule.checksum() method
checksum = secure_hash checksum = secure_hash
checksum_s = secure_hash_s checksum_s = secure_hash_s

Loading…
Cancel
Save