Switch to hashlib.sha256() for ansible-test (#72411)

When FIPs mode is enable on centos-8, we are not able to load md5
functions.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/72778/head
Paul Belanger 4 years ago committed by GitHub
parent 79fb065d16
commit a95213d2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Switch to hashlib.sha256() for ansible-test to allow for FIPs mode.

@ -2118,7 +2118,7 @@ class EnvironmentDescription:
if not os.path.exists(path):
return None
file_hash = hashlib.md5()
file_hash = hashlib.sha256()
file_hash.update(read_binary_file(path))

Loading…
Cancel
Save