Skip to content

Commit

Permalink
Fixing bug in parsing runner name.
Browse files Browse the repository at this point in the history
Fixing README.rst.
  • Loading branch information
Vitaliy Zakaznikov committed Mar 18, 2024
1 parent cba4c71 commit 7c74fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Table of Contents
* `Scaling Down Runners <https://github.com/testflows/TestFlows-GitHub-Hetzner-Runners/wiki/Scaling-Down-Runners>`_
* `Handling Failing Conditions <https://github.com/testflows/TestFlows-GitHub-Hetzner-Runners/wiki/Handling-Failing-Conditions>`_
* `Meta Labels <https://github.com/testflows/TestFlows-GitHub-Hetzner-Runners/wiki/Meta-Labels>`_
* `Estimating Costs <https://github.com/testflows/TestFlows-GitHub-Hetzner-Runners/wiki/Estimating-Costs>`_
* `Program Options <https://github.com/testflows/TestFlows-GitHub-Hetzner-Runners/wiki/Program-Options>`_

===========
Expand Down
2 changes: 1 addition & 1 deletion testflows/github/hetzner/runners/scale_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_runner_server_type_and_location(runner_name: str):
server_type, server_location = None, None

if runner_name.startswith(runner_name_prefix):
if len(runner_name.split("-")) == 8:
if len(runner_name.split("-")) == 7:
server_type, server_location = runner_name.split("-")[5:]

return server_type, server_location
Expand Down

0 comments on commit 7c74fe8

Please sign in to comment.