diff --git a/v2/ansible/utils/hashing.py b/v2/ansible/utils/hashing.py index 482e52d1279..a7d142e5bd4 100644 --- a/v2/ansible/utils/hashing.py +++ b/v2/ansible/utils/hashing.py @@ -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