From 400006448a470d7f71393aaa461542b4764df4dd Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 04:47:52 +0000 Subject: populate prune: name the target by its host, like populate's messages Pruning names the target as user@host:path, like rsync's destination, but nothing else populate prints names the user: the errors about the sentinel name the host, and the commands it runs on the target name the host, with the user as ssh's option. Pruning names the target like those do, as host:path, and the errors about the sentinel use the same function for it. --- tests/scenarios.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/scenarios.nix b/tests/scenarios.nix index bd3be6a..fea0a5a 100644 --- a/tests/scenarios.nix +++ b/tests/scenarios.nix @@ -1050,11 +1050,9 @@ assert !(krops.isLocalTarget (targets.remote "/")); sources = { inherit (sources) a; b.symlink = "a"; }; prune = true; output = map - (name: "pruning ${{ - local = ""; - remote = "root@${remoteHost}:"; - sudo = "deploy@${remoteHost}:"; - }.${targetKind}}/var/krops/prune-${targetKind}/${name}") + (name: "pruning ${ + optionalString (targetKind != "local") "${remoteHost}:" + }/var/krops/prune-${targetKind}/${name}") [ "c" "d" "other" ]; check = '' test -e "$T"/a/flake.nix || fail "a removed" -- cgit v1.3.1