File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
veadk/integrations/ve_identity Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,11 @@ def try_get_vefaas_credentials():
7272 try :
7373 logger .info ("Attempting to fetch credentials from VeFaaS IAM..." )
7474 ve_iam_cred = get_credential_from_vefaas_iam ()
75- if ve_iam_cred .access_key_id and ve_iam_cred .secret_access_key :
76- logger .info ("Successfully retrieved credentials from VeFaaS IAM" )
77- return (
78- ve_iam_cred .access_key_id ,
79- ve_iam_cred .secret_access_key ,
80- ve_iam_cred .session_token or "" ,
81- )
75+ return (
76+ ve_iam_cred .access_key_id ,
77+ ve_iam_cred .secret_access_key ,
78+ ve_iam_cred .session_token ,
79+ )
8280 except FileNotFoundError as e :
8381 logger .warning (f"VeFaaS IAM credentials not available: { e } " )
8482 except Exception as e :
@@ -87,6 +85,9 @@ def try_get_vefaas_credentials():
8785
8886 # If no AK/SK, try to get from VeFaaS IAM
8987 if not (ak and sk ):
88+ logger .info (
89+ "Credentials not found in environment, attempting to fetch from VeFaaS IAM..."
90+ )
9091 credentials = try_get_vefaas_credentials ()
9192 if credentials :
9293 ak , sk , session_token = credentials
You can’t perform that action at this time.
0 commit comments