From 4a25388b615b34a3b0a437fcbd1985ad38c2e14f Mon Sep 17 00:00:00 2001 From: "Matthew X. Economou" Date: Fri, 12 Jan 2024 20:02:10 -0500 Subject: [PATCH] Do not retrieve credentials from credential_process when set to empty string Fixes boto/botocore#3098. --- botocore/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botocore/credentials.py b/botocore/credentials.py index 42707b0124..6d78d50806 100644 --- a/botocore/credentials.py +++ b/botocore/credentials.py @@ -994,7 +994,7 @@ def __init__(self, profile_name, load_config, popen=subprocess.Popen): def load(self): credential_process = self._credential_process - if credential_process is None: + if not credential_process: return creds_dict = self._retrieve_credentials_using(credential_process)