We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfaf46 commit 75bb9b2Copy full SHA for 75bb9b2
1 file changed
localstack_utils/container.py
@@ -39,8 +39,12 @@ def create_localstack_container(
39
):
40
environment_variables = environment_variables or {}
41
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"]
+ if "LOCALSTACK_AUTH_TOKEN" not in environment_variables and os.environ.get(
+ "LOCALSTACK_AUTH_TOKEN"
44
+ ):
45
+ environment_variables["LOCALSTACK_AUTH_TOKEN"] = os.environ[
46
47
+ ]
48
49
image_exists = (
50
True if len(DOCKER_CLIENT.images.list(name=image_name)) else False
0 commit comments