mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
Merge pull request #7301 from berendt/check_against_lowered_sha256sum
[get_url] check against lowered stripped sha256sum
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user