summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2019-10-14 11:01:59 -0700
committerTim Burke <tim.burke@gmail.com>2019-10-14 11:01:59 -0700
commite58840c571b1a1fe9ae9017a07c6754a10cbf69b (patch)
tree0a8ba2279cad532c83c26ec66e22d9408d632609 /bin
parent29d46ca9f624cde5f452f7f50ed4244be09eb97a (diff)
downloadswift-e58840c571b1a1fe9ae9017a07c6754a10cbf69b.tar.gz
swift-account-audit: work with encryption
Change-Id: I26c5fe9d45a9765da0d30138ea2df16fd4e73d57
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-account-audit7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/swift-account-audit b/bin/swift-account-audit
index f0ad4e7de..c3862a797 100755
--- a/bin/swift-account-audit
+++ b/bin/swift-account-audit
@@ -108,7 +108,6 @@ class Auditor(object):
consistent = False
print(' MD5 does not match etag for "%s" on %s/%s'
% (path, node['ip'], node['device']))
- etags.append((resp.getheader('ETag'), node))
else:
conn = http_connect(node['ip'], node['port'],
node['device'], part, 'HEAD',
@@ -120,6 +119,12 @@ class Auditor(object):
print(' Bad status HEADing object "%s" on %s/%s'
% (path, node['ip'], node['device']))
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))
except Exception:
self.object_exceptions += 1