Skip to content

Commit 1bd41d3

Browse files
author
Vitaliy Zakaznikov
committed
Adding IP address field to the list command.
1 parent 15a25e7 commit 1bd41d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

testflows/github/hetzner/runners/scale_up.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def server_setup(
202202
(
203203
f"'sudo mkdir -p /mnt/{volume_name}/apt-archives /mnt/{volume_name}/apt-lists /var/cache/apt/archives /var/lib/apt/lists "
204204
f"&& sudo mount --bind /mnt/{volume_name}/apt-archives /var/cache/apt/archives "
205-
f"&& sudo mount --bind /mnt/{volume_name}/cache/apt-lists /var/lib/apt/lists'"
205+
f"&& sudo mount --bind /mnt/{volume_name}/apt-lists /var/lib/apt/lists'"
206206
),
207207
stacklevel=5,
208208
)

testflows/github/hetzner/runners/servers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from .actions import Action
2626
from .config import Config
27-
from .server import ssh_command
27+
from .server import ssh_command, ip_address
2828
from .scale_up import server_name_prefix, runner_name_prefix, get_volume_name
2929
from .hclient import HClient as Client
3030
from .request import request
@@ -150,6 +150,7 @@ def list(args, config: Config):
150150
f"{'status':11}",
151151
f"name,",
152152
"id,",
153+
"ip,",
153154
"type,",
154155
"location,",
155156
"image,",
@@ -167,6 +168,7 @@ def list(args, config: Config):
167168
f"{server.status:11}",
168169
f"{server.name},",
169170
f"{server.id},",
171+
f"{ip_address(server)},",
170172
f"{server.server_type.name},",
171173
f"{server.datacenter.location.name},",
172174
f"{server.image.name},",

0 commit comments

Comments
 (0)