Skip to content

Commit bc4a6d0

Browse files
committed
Remove created bucket before deleting create creds.
Signed-off-by: Kurt Garloff <[email protected]>
1 parent f8dd974 commit bc4a6d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/iaas/mandatory-services/mandatory-iaas-services.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,16 @@ def check_for_s3_and_swift(conn: openstack.connection.Connection, s3_credentials
203203
result = 1
204204
else:
205205
logger.info("SUCCESS: S3 and Swift exist and agree")
206-
# Clean up ec2 cred IF we created one
207-
if ec2_cred:
208-
conn.identity.delete_credential(ec2_cred)
209206
# No need to clean up swift container, as we did not create one
210207
# (If swift and S3 agree, there will be a S3 bucket that we clean up with S3.)
211208
# if swift_containers == [TESTCONTNAME]:
212209
# del_container(conn, TESTCONTNAME)
213210
# Cleanup created S3 bucket
214211
if s3_buckets == [TESTCONTNAME]:
215212
del_bucket(s3, TESTCONTNAME)
213+
# Clean up ec2 cred IF we created one
214+
if ec2_cred:
215+
conn.identity.delete_credential(ec2_cred)
216216
return result
217217

218218

0 commit comments

Comments
 (0)