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:
commit
51dfd18e1f
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
destination_checksum = module.sha256(dest)
|
destination_checksum = module.sha256(dest)
|
||||||
|
|
||||||
if stripped_sha256sum != destination_checksum:
|
if stripped_sha256sum.lower() != destination_checksum:
|
||||||
os.remove(dest)
|
os.remove(dest)
|
||||||
module.fail_json(msg="The SHA-256 checksum for %s did not match %s; it was %s." % (dest, sha256sum, destination_checksum))
|
module.fail_json(msg="The SHA-256 checksum for %s did not match %s; it was %s." % (dest, sha256sum, destination_checksum))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue