summaryrefslogtreecommitdiffstats
path: root/gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens
diff options
context:
space:
mode:
Diffstat (limited to 'gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens')
-rwxr-xr-xgluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens2
1 files changed, 2 insertions, 0 deletions
diff --git a/gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens b/gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens
index 54bed9d..21f99ba 100755
--- a/gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens
+++ b/gluster/swift/common/middleware/gswauth/bin/swauth-cleanup-tokens
@@ -107,6 +107,8 @@ if __name__ == '__main__':
if e.http_status == 404:
exit('Container %s not found. swauth-prep needs to be '
'rerun' % (container))
+ elif e.http_status == 401:
+ exit('Cleanup tokens failed: 401 Unauthorized: Invalid user/key provided')
else:
exit('Object listing on container %s failed with status '
'code %d' % (container, e.http_status))