Skip to content

Commit f839e1d

Browse files
committed
consider API key on image selection
1 parent 44c812e commit f839e1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstack-core/localstack/utils/bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ def is_auth_token_configured() -> bool:
13621362
"""Whether an API key is set in the environment."""
13631363
return (
13641364
True
1365-
if os.environ.get("LOCALSTACK_AUTH_TOKEN")
1366-
and os.environ.get("LOCALSTACK_AUTH_TOKEN").strip()
1365+
if os.environ.get("LOCALSTACK_AUTH_TOKEN", "").strip()
1366+
or os.environ.get("LOCALSTACK_API_KEY", "").strip()
13671367
else False
13681368
)

0 commit comments

Comments
 (0)