Remove old rgw bug workaround.

test_bucket_delete_nonowner says rgw works right now.
This commit is contained in:
Tommi Virtanen 2011-06-10 11:05:34 -07:00
parent 9da6d2c87b
commit c4f820fcf0

View file

@ -65,12 +65,6 @@ def nuke_prefixed_buckets():
key.delete() key.delete()
bucket.delete() bucket.delete()
except boto.exception.S3ResponseError as e: except boto.exception.S3ResponseError as e:
# TODO workaround for buggy rgw that fails to send
# error_code, remove
if (e.status == 403
and e.error_code is None
and e.body == ''):
e.error_code = 'AccessDenied'
if e.error_code != 'AccessDenied': if e.error_code != 'AccessDenied':
print 'GOT UNWANTED ERROR', e.error_code print 'GOT UNWANTED ERROR', e.error_code
raise raise