From 8a1902b3695c946e1dce113ca40dc51cf9b6d3a3 Mon Sep 17 00:00:00 2001 From: Tianning Zhang Date: Mon, 28 Oct 2024 11:31:09 -0400 Subject: [PATCH] [CU-86b2kx0tp] changed return to exit(1) --- dnastack/cli/workbench/storage_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnastack/cli/workbench/storage_commands.py b/dnastack/cli/workbench/storage_commands.py index 2620949..ffc3796 100644 --- a/dnastack/cli/workbench/storage_commands.py +++ b/dnastack/cli/workbench/storage_commands.py @@ -93,7 +93,7 @@ def add_aws_storage_account(context: Optional[str], # Validate bucket format if not re.match(r'^s3://', bucket): click.echo(style("Error: Bucket name must start with 's3://'", fg='red'), err=True, color=True) - return + exit(1) """Create a new aws storage account""" client = get_storage_client(context, endpoint_id, namespace) @@ -320,7 +320,7 @@ def add_platform(context: Optional[str], # Validate path format if re.match(r'^s3://', path): click.echo(style("Error: Path must not start with 's3://'", fg='red'), err=True, color=True) - return + exit(1) # Prefix path with a forward slash if not already present if path and not path.startswith('/'):