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))