Skip to content

Commit 75bb9b2

Browse files
committed
format
1 parent 9bfaf46 commit 75bb9b2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

localstack_utils/container.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ def create_localstack_container(
3939
):
4040
environment_variables = environment_variables or {}
4141
environment_variables["GATEWAY_LISTEN"] = gateway_listen
42-
if "LOCALSTACK_AUTH_TOKEN" not in environment_variables and os.environ.get("LOCALSTACK_AUTH_TOKEN"):
43-
environment_variables["LOCALSTACK_AUTH_TOKEN"] = os.environ["LOCALSTACK_AUTH_TOKEN"]
42+
if "LOCALSTACK_AUTH_TOKEN" not in environment_variables and os.environ.get(
43+
"LOCALSTACK_AUTH_TOKEN"
44+
):
45+
environment_variables["LOCALSTACK_AUTH_TOKEN"] = os.environ[
46+
"LOCALSTACK_AUTH_TOKEN"
47+
]
4448

4549
image_exists = (
4650
True if len(DOCKER_CLIENT.images.list(name=image_name)) else False

0 commit comments

Comments
 (0)