Skip to content

Commit

Permalink
Update src/ostorlab/cli/scan/stop/stop.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alaeddine Mesbahi <alaeddine.mesbahi@ostorlab.dev>
  • Loading branch information
elyousfi5 and 3asm authored Dec 3, 2024
1 parent ca8cc3f commit 5a1b470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ostorlab/cli/scan/stop/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def stop(ctx: click.core.Context, scan_ids: Tuple[int, ...], stop_all: bool) ->
scans_list = runtime_instance.list()
ids_to_stop = [s.id for s in scans_list]
if len(ids_to_stop) == 0:
console.warning("No running scans found")
console.warning("No running scans found.")
return
else:
ids_to_stop = list(scan_ids)
Expand Down

0 comments on commit 5a1b470

Please sign in to comment.