From 8ac9ad313377853b9fac92a8c7291f773e84c11b Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 24 Jan 2024 13:22:41 +0100 Subject: [PATCH] clan-cli update: use new Machine class interface --- pkgs/clan-cli/clan_cli/machines/update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 378803aab..b12410271 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -93,7 +93,9 @@ def get_all_machines(clan_dir: Path) -> HostGroup: name, machine_data["deploymentAddress"], meta={ - "machine": Machine(name=name, flake=clan_dir, machine_data=machine_data) + "machine": Machine( + name=name, flake=clan_dir, deployment_info=machine_data + ) }, ) hosts.append(host) @@ -114,7 +116,7 @@ def update(args: argparse.Namespace) -> None: raise ClanError("Could not find clan flake toplevel directory") if len(args.machines) == 1 and args.target_host is not None: machine = Machine(name=args.machines[0], flake=args.flake) - machine.deployment_address = args.target_host + machine.deployment_info["deploymentAddress"] = args.target_host host = parse_deployment_address( args.machines[0], args.target_host,