From e702a284965922f70b3f8376e0cf39cb0ce07c8f Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 2 Feb 2015 10:19:57 -0800 Subject: [PATCH] Comment for why we have checksum and checksum_s --- v2/ansible/utils/hashing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/ansible/utils/hashing.py b/v2/ansible/utils/hashing.py index 482e52d127..a7d142e5bd 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