[stable-2.10] Switch to hashlib.sha256() for ansible-test (#72411) (#74169)

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

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit a95213d2f5)

Co-authored-by: Paul Belanger <pabelanger@redhat.com>

Co-authored-by: Paul Belanger <pabelanger@redhat.com>
pull/74258/head
Matt Clay 5 years ago committed by GitHub
parent 19ab9ed7b9
commit 3d11b480d0
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.

@ -2246,7 +2246,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