clan-cli: init machine from inventory

This commit is contained in:
Qubasa
2025-06-07 00:51:53 +02:00
parent 33be415922
commit 2540215f2e
3 changed files with 121 additions and 32 deletions

View File

@@ -21,7 +21,8 @@ class ConnectionOptions:
def check_machine_online(
machine: Machine, opts: ConnectionOptions | None = None
) -> Literal["Online", "Offline"]:
hostname = machine.target_host_address
hostname = machine.target_host().target
if not hostname:
msg = f"Machine {machine.name} does not specify a targetHost"
raise ClanError(msg)