1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7301 from berendt/check_against_lowered_sha256sum

[get_url] check against lowered stripped sha256sum
This commit is contained in:
James Cammarata 2014-05-06 11:35:24 -05:00
commit 51dfd18e1f

View file

@ -283,7 +283,7 @@ def main():
else:
destination_checksum = module.sha256(dest)
if stripped_sha256sum != destination_checksum:
if stripped_sha256sum.lower() != destination_checksum:
os.remove(dest)
module.fail_json(msg="The SHA-256 checksum for %s did not match %s; it was %s." % (dest, sha256sum, destination_checksum))