summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neutronclient/common/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neutronclient/common/utils.py b/neutronclient/common/utils.py
index 3a0469d..b61ee3b 100644
--- a/neutronclient/common/utils.py
+++ b/neutronclient/common/utils.py
@@ -183,9 +183,9 @@ def http_log_req(_logger, args, kwargs):
for (key, value) in six.iteritems(kwargs['headers']):
if key in SENSITIVE_HEADERS:
v = value.encode('utf-8')
- h = hashlib.sha1(v)
+ h = hashlib.sha256(v)
d = h.hexdigest()
- value = "{SHA1}%s" % d
+ value = "{SHA256}%s" % d
header = ' -H "%s: %s"' % (key, value)
string_parts.append(header)