Skip to content

Commit

Permalink
Fix: wrong condition in draksetup scale (#974)
Browse files Browse the repository at this point in the history
* Fix: wrong condition in draksetup scale

* Update scale.py
  • Loading branch information
psrok1 authored Oct 4, 2024
1 parent ffdc363 commit 6b97d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drakrun/drakrun/draksetup/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@click.argument("scale_count", type=int)
def scale(scale_count):
"""Enable or disable additional parallel instances of drakrun service.."""
if scale_count >= 0:
if scale_count < 0:
raise RuntimeError(
"Invalid value of scale parameter - must be a positive number."
"Invalid value of scale parameter - must be a non-negative number."
)

cur_services = set(list(get_enabled_drakruns()))
Expand Down

0 comments on commit 6b97d70

Please sign in to comment.