Merge "py3: fix swift-account-audit"
This commit is contained in:
commit
294472464a
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user