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>
This commit is contained in:
Paul Belanger 2020-12-01 13:14:20 -05:00 committed by GitHub
parent 79fb065d16
commit a95213d2f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

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

View file

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