Skip to content

Commit

Permalink
Ignore return code from preset check
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed Sep 26, 2024
1 parent 51b2fc6 commit 1e780f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recce/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ async def cli_run(output_state_file: str, **kwargs):
pass
else:
console.rule("Preset checks")
rc, failed_checks = await execute_preset_checks(preset_checks)
if rc != 0 and failed_checks:
console.print("[[yellow]Warning[/yellow]] Some preset checks failed. Please see the failed reason.")
_, failed_checks = await execute_preset_checks(preset_checks)
if failed_checks:
console.print("[[yellow]Warning[/yellow]] Preset checks failed. Please see the failed reason.")
process_failed_checks(failed_checks, error_log)
else:
state_checks = ctx.state_loader.state.checks
Expand All @@ -248,7 +248,7 @@ async def cli_run(output_state_file: str, **kwargs):
console.rule("Checks")
_, failed_checks = await execute_state_checks(state_checks)
if failed_checks:
console.print("[[yellow]Warning[/yellow]] Some checks failed. Please see the failed reason.")
console.print("[[yellow]Warning[/yellow]] Checks failed. Please see the failed reason.")
process_failed_checks(failed_checks, error_log)

from recce.event import log_load_state
Expand Down

0 comments on commit 1e780f5

Please sign in to comment.