summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-10-15 20:01:24 +0000
committerGerrit Code Review <review@openstack.org>2019-10-15 20:01:24 +0000
commit294472464a8dfeab1f680eac78d4dd8c45552395 (patch)
tree31c4e23ff1b5e6808b3fcc94df0d2e41cf2ca95d /bin
parent4768f22507ab7f0e346dcecde91447cb9f7a8001 (diff)
parent2f4fe56ca484c0efc11736aa323b2e63199e3513 (diff)
downloadswift-294472464a8dfeab1f680eac78d4dd8c45552395.tar.gz
Merge "py3: fix swift-account-audit"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-account-audit6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/swift-account-audit b/bin/swift-account-audit
index f0ad4e7de..adfaf7178 100755
--- a/bin/swift-account-audit
+++ b/bin/swift-account-audit
@@ -177,7 +177,8 @@ class Auditor(object):
(path, node['ip'], node['device']))
break
if node['id'] not in responses:
- responses[node['id']] = dict(resp.getheaders())
+ responses[node['id']] = {
+ h.lower(): v for h, v in resp.getheaders()}
results = json.loads(resp.read())
except Exception:
self.container_exceptions += 1
@@ -262,7 +263,8 @@ class Auditor(object):
(account, node['ip'], node['device']))
break
if node_id not in responses:
- responses[node_id] = [dict(resp.getheaders()), []]
+ responses[node_id] = [
+ {h.lower(): v for h, v in resp.getheaders()}, []]
responses[node_id][1].extend(results)
if results:
marker = results[-1]['name']