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

@@ -220,10 +220,7 @@ def update_command(args: argparse.Namespace) -> None:
for machine_name in selected_machines:
machine = Machine(
name=machine_name,
flake=args.flake,
nix_options=args.option,
host_key_check=HostKeyCheck.from_str(args.host_key_check),
name=machine_name, flake=args.flake, nix_options=args.option
)
machines.append(machine)
@@ -281,8 +278,7 @@ def update_command(args: argparse.Namespace) -> None:
target_host = Remote.from_deployment_address(
machine_name=machine.name,
address=args.target_host,
host_key_check=host_key_check,
)
).override(host_key_check=host_key_check)
else:
target_host = machine.target_host()
runtime.async_run(