Stop partial()ing hashlib.new
Seems to be causing issues on (some?) FIPS nodes.
Change-Id: I4fcacc76ab52b45510aee82156a7cbf6ad72467d
(cherry picked from commit 471a559a4d
)
This commit is contained in:
parent
969dcb6ee9
commit
6a1a8ce14b
|
@ -299,7 +299,6 @@ __all__ = ['TempURL', 'filter_factory',
|
|||
|
||||
import binascii
|
||||
from calendar import timegm
|
||||
import functools
|
||||
import hashlib
|
||||
import six
|
||||
from os.path import basename
|
||||
|
@ -750,7 +749,7 @@ class TempURL(object):
|
|||
if not request_method:
|
||||
request_method = env['REQUEST_METHOD']
|
||||
|
||||
digest = functools.partial(hashlib.new, hash_algorithm)
|
||||
digest = getattr(hashlib, hash_algorithm)
|
||||
|
||||
return [
|
||||
(get_hmac(
|
||||
|
|
Loading…
Reference in New Issue