Skip to content

Commit

Permalink
fix: Do not make two requests to the server to check if the pipeline …
Browse files Browse the repository at this point in the history
…exists (#94)
  • Loading branch information
qgerome authored Dec 6, 2023
1 parent 2455a3e commit 4501bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhexa/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def pipelines_delete(code: str):
sys.exit(1)
else:
pipeline = get_pipeline(user_config, code)
if get_pipeline(user_config, code) is None:
if pipeline is None:
click.echo(
f"Pipeline {click.style(code, bold=True)} does not exist in workspace {click.style(workspace, bold=True)}"
)
Expand Down

0 comments on commit 4501bda

Please sign in to comment.