clan-lib: machines.py: Remove host_key attribute

This commit is contained in:
Qubasa
2025-06-19 17:55:56 +02:00
parent cce4d561e4
commit fae4d39a10
9 changed files with 22 additions and 54 deletions

View File

@@ -47,10 +47,8 @@ class DeployInfo:
msg = "Hostname cannot be empty."
raise ClanError(msg)
remote = Remote.from_deployment_address(
machine_name="clan-installer",
address=host,
host_key_check=host_key_check,
)
machine_name="clan-installer", address=host
).override(host_key_check=host_key_check)
remotes.append(remote)
return DeployInfo(addrs=remotes)
@@ -64,9 +62,8 @@ class DeployInfo:
remote = Remote.from_deployment_address(
machine_name="clan-installer",
address=addr,
host_key_check=host_key_check,
password=password,
)
).override(host_key_check=host_key_check)
addrs.append(remote)
else:
msg = f"Invalid address format: {addr}"
@@ -75,10 +72,9 @@ class DeployInfo:
remote = Remote.from_deployment_address(
machine_name="clan-installer",
address=tor_addr,
host_key_check=host_key_check,
password=password,
tor_socks=True,
)
).override(host_key_check=host_key_check)
addrs.append(remote)
return DeployInfo(addrs=addrs)