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:
parent
79fb065d16
commit
a95213d2f5
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/72411-fips-mode-ansible-test.yml
Normal file
2
changelogs/fragments/72411-fips-mode-ansible-test.yml
Normal file
|
@ -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…
Reference in a new issue