diff options
author | Oleg Bondarev <obondarev@mirantis.com> | 2019-08-20 15:15:36 +0400 |
---|---|---|
committer | Oleg Bondarev <obondarev@mirantis.com> | 2019-08-20 15:17:30 +0400 |
commit | 62f4868e6e240ebbb4d6e29b8c1e1d23a24fcc15 (patch) | |
tree | 7383c52dd179fcf578218bc84a55db8596398177 | |
parent | ab426a791ad1937ea2cf3b340202b3968a378978 (diff) | |
download | python-neutronclient-62f4868e6e240ebbb4d6e29b8c1e1d23a24fcc15.tar.gz |
Fix string in header
Commit ab426a791ad1937ea2cf3b340202b3968a378978 changed
sha1 to sha256.
Need to change string correspondingly
Change-Id: I8b35350c32ab551d513f21325931d6697f62fb2f
Related-Bug: #1759250
-rw-r--r-- | neutronclient/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neutronclient/common/utils.py b/neutronclient/common/utils.py index 994e2a9..b61ee3b 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) |