From 62f4868e6e240ebbb4d6e29b8c1e1d23a24fcc15 Mon Sep 17 00:00:00 2001 From: Oleg Bondarev Date: Tue, 20 Aug 2019 15:15:36 +0400 Subject: [PATCH] Fix string in header Commit ab426a791ad1937ea2cf3b340202b3968a378978 changed sha1 to sha256. Need to change string correspondingly Change-Id: I8b35350c32ab551d513f21325931d6697f62fb2f Related-Bug: #1759250 --- neutronclient/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutronclient/common/utils.py b/neutronclient/common/utils.py index 994e2a9db..b61ee3b7a 100644 --- a/neutronclient/common/utils.py +++ b/neutronclient/common/utils.py @@ -185,7 +185,7 @@ def http_log_req(_logger, args, kwargs): v = value.encode('utf-8') 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)