Skip to content

Commit 03fe024

Browse files
committed
Update identity_client.py
1 parent f4527e3 commit 03fe024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

veadk/integrations/ve_identity/identity_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def _refresh_creds(self: IdentityClient):
8989
# Step 3: Try VeFaaS IAM if no credentials or no session_token
9090
# VeFaaS IAM provides complete credentials (ak, sk, session_token)
9191
if not (ak and sk) or (ak and sk and not session_token):
92-
ak, sk, session_token = _try_get_vefaas_credentials()
92+
if credentials := _try_get_vefaas_credentials():
93+
ak, sk, session_token = credentials
9394

9495
# Step 4: If still no session_token, try AssumeRole
9596
if ak and sk and not session_token:

0 commit comments

Comments
 (0)