We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbdd90 commit 81f4b47Copy full SHA for 81f4b47
1 file changed
Tests/iaas/scs_0123_mandatory_services/mandatory_services.py
@@ -153,6 +153,12 @@ def compute_scs_0123_swift_s3(conn: openstack.connection.Connection):
153
finally:
154
# Cleanup created S3 bucket
155
if TESTCONTNAME in s3_buckets:
156
- s3.delete_bucket(Bucket=TESTCONTNAME)
+ # contrary to Boto docs at
157
+ # https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/delete_bucket.html
158
+ # , the following fails with
159
+ # AttributeError: 's3.ServiceResource' object has no attribute 'delete_bucket'. Did you mean: 'create_bucket'?
160
+ # s3.delete_bucket(Bucket=TESTCONTNAME)
161
+ # workaround:
162
+ s3.Bucket(name=TESTCONTNAME).delete()
163
# Clean up ec2 cred IF we created one
164
remove_leftovers(usable_credentials, conn)
0 commit comments