From 310856a112c0db6c197484f06e72bcadb0ad3500 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 21 Oct 2025 13:02:36 -0700 Subject: [PATCH] pre-connect: make sure we're matching against unquoted hostnames --- .kamal/hooks/pre-connect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.kamal/hooks/pre-connect b/.kamal/hooks/pre-connect index 2b6d9af42..5f42f2cf2 100755 --- a/.kamal/hooks/pre-connect +++ b/.kamal/hooks/pre-connect @@ -13,7 +13,7 @@ if command -v yq >/dev/null 2>&1; then SUGGESTIONS["$host"]="$host.sc-chi-int.37signals.com" fi fi - done < <(bin/kamal config -d "${KAMAL_DESTINATION:-production}" 2>/dev/null | yq '.":hosts"[]') + done < <(bin/kamal config -d "${KAMAL_DESTINATION:-production}" 2>/dev/null | yq -r '.":hosts"[]') if [ ${#SUGGESTIONS[@]} -gt 0 ]; then echo "Unqualified hostnames found in config/deploy.${KAMAL_DESTINATION:-production}.yml:" >&2