From 2931b08b462a87b1bbf12e246773e547f8c52975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 19 Sep 2023 14:15:15 +0200 Subject: [PATCH] clan-cli/update: use correct flake attr when deploying --- pkgs/clan-cli/clan_cli/machines/update.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 875f7fdde..9f5a1705c 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -104,10 +104,20 @@ def update(args: argparse.Namespace) -> None: hostname = maybe_port[0] port = int(maybe_port[1]) print(f"deploying {host}") - deploy_nixos(HostGroup([Host(host=hostname, port=port, user=user)])) + deploy_nixos( + HostGroup( + [ + Host( + host=hostname, + port=port, + user=user, + meta=dict(flake_attr=args.machine), + ) + ] + ) + ) def register_update_parser(parser: argparse.ArgumentParser) -> None: - parser.add_argument("--target-host", type=str, default="root") parser.add_argument("machine", type=str) parser.set_defaults(func=update)