summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-02-02 10:19:57 -0800
committerToshio Kuratomi <toshio@fedoraproject.org>2015-02-02 10:25:09 -0800
commite702a284965922f70b3f8376e0cf39cb0ce07c8f (patch)
tree3ef50e6afc75692124cebfd01609a8915996aeb1
parent5eafa1e7c3e4494297dc1d260be1e38933d305dd (diff)
downloadansible-e702a284965922f70b3f8376e0cf39cb0ce07c8f.tar.gz
Comment for why we have checksum and checksum_s
-rw-r--r--v2/ansible/utils/hashing.py1
1 files changed, 1 insertions, 0 deletions
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