diff options
author | Zuul <zuul@review.opendev.org> | 2019-10-15 20:01:24 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-10-15 20:01:24 +0000 |
commit | 294472464a8dfeab1f680eac78d4dd8c45552395 (patch) | |
tree | 31c4e23ff1b5e6808b3fcc94df0d2e41cf2ca95d /bin | |
parent | 4768f22507ab7f0e346dcecde91447cb9f7a8001 (diff) | |
parent | 2f4fe56ca484c0efc11736aa323b2e63199e3513 (diff) | |
download | swift-294472464a8dfeab1f680eac78d4dd8c45552395.tar.gz |
Merge "py3: fix swift-account-audit"
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-account-audit | 6 |
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'] |