Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b88b8ac

Browse files
gtsiolissilv-io
andcommitted
Inlcude localstack-pro as option
Co-authored-by: Silvio Vasiljevic <[email protected]>
1 parent 9a48cb0 commit b88b8ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎localstack-core/localstack/cli/localstack.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,9 @@ def cmd_start(
507507
if stack:
508508
# Validate allowed stacks
509509
stack_name = stack.split(":")[0]
510-
if stack_name.lower() not in ["localstack", "snowflake"]:
511-
raise CLIError(
512-
f"Invalid stack '{stack_name}'. Only 'localstack' and 'snowflake' are supported."
513-
)
510+
allowed_stacks = ("localstack", "localstack-pro", "snowflake")
511+
if stack_name.lower() not in allowed_stacks:
512+
raise CLIError(f"Invalid stack '{stack_name}'. Allowed stacks: {allowed_stacks}.")
514513

515514
# Set IMAGE_NAME, defaulting to :latest if no version specified
516515
if ":" not in stack:

0 commit comments

Comments
 (0)