Skip to content

Commit 8a5f4c0

Browse files
authored
Fix: stale ec2 credentials would be used (#1052)
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent e279331 commit 8a5f4c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Tests/iaas/scs_0123_mandatory_services/mandatory_services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def compute_scs_0123_swift_s3(conn: openstack.connection.Connection):
126126
# Get S3 endpoint (swift) and ec2 creds from OpenStack (keystone)
127127
try:
128128
usable_credentials = remove_leftovers(get_usable_credentials(conn), conn)
129+
# we could use any credential from the list usable_credentials, but let's not do that,
130+
# because they could be stale
131+
del usable_credentials[:]
129132
s3_creds = s3_from_ostack(ensure_ec2_credentials(usable_credentials, conn), conn)
130133

131134
# This is to be used for local debugging purposes ONLY

0 commit comments

Comments
 (0)