swift-account-audit: work with encryption
Change-Id: I26c5fe9d45a9765da0d30138ea2df16fd4e73d57
This commit is contained in:
parent
29d46ca9f6
commit
e58840c571
@ -108,7 +108,6 @@ class Auditor(object):
|
|||||||
consistent = False
|
consistent = False
|
||||||
print(' MD5 does not match etag for "%s" on %s/%s'
|
print(' MD5 does not match etag for "%s" on %s/%s'
|
||||||
% (path, node['ip'], node['device']))
|
% (path, node['ip'], node['device']))
|
||||||
etags.append((resp.getheader('ETag'), node))
|
|
||||||
else:
|
else:
|
||||||
conn = http_connect(node['ip'], node['port'],
|
conn = http_connect(node['ip'], node['port'],
|
||||||
node['device'], part, 'HEAD',
|
node['device'], part, 'HEAD',
|
||||||
@ -120,6 +119,12 @@ class Auditor(object):
|
|||||||
print(' Bad status HEADing object "%s" on %s/%s'
|
print(' Bad status HEADing object "%s" on %s/%s'
|
||||||
% (path, node['ip'], node['device']))
|
% (path, node['ip'], node['device']))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
override_etag = resp.getheader(
|
||||||
|
'X-Object-Sysmeta-Container-Update-Override-Etag')
|
||||||
|
if override_etag:
|
||||||
|
etags.append((override_etag, node))
|
||||||
|
else:
|
||||||
etags.append((resp.getheader('ETag'), node))
|
etags.append((resp.getheader('ETag'), node))
|
||||||
except Exception:
|
except Exception:
|
||||||
self.object_exceptions += 1
|
self.object_exceptions += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user