From b7097ba9d3a31d902e6acff965535ae53b37981a Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 24 Mar 2026 10:06:22 +0000 Subject: [PATCH] nixos/beszel: fix agent status check --- nixos/tests/beszel.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/beszel.nix b/nixos/tests/beszel.nix index d97108ac2c00..fbc6418c985a 100644 --- a/nixos/tests/beszel.nix +++ b/nixos/tests/beszel.nix @@ -114,6 +114,6 @@ agentHost.succeed("/run/current-system/specialisation/agent/bin/switch-to-configuration switch") agentHost.wait_for_unit("beszel-agent.service") agentHost.wait_until_succeeds("journalctl -eu beszel-agent --grep 'SSH connection established'") - agentHost.wait_until_succeeds(f'curl -H \'Authorization: {user["token"]}\' -f ${agentCfg.environment.HUB_URL}/api/collections/systems/records | grep agentHost') + agentHost.wait_until_succeeds(f'curl -H \'Authorization: {user["token"]}\' -f ${agentCfg.environment.HUB_URL}/api/collections/systems/records | jq -e \'.items[].status == "up"\' ') ''; }