From 6d9543661fd7e5c72f8d42cc188d3931f245f261 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Fri, 14 Aug 2026 19:39:54 +0300 Subject: [PATCH] fix sonar --- infrastructure_files/migrate-to-enterprise.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure_files/migrate-to-enterprise.sh b/infrastructure_files/migrate-to-enterprise.sh index c9baf5689..0fb2bb2f2 100755 --- a/infrastructure_files/migrate-to-enterprise.sh +++ b/infrastructure_files/migrate-to-enterprise.sh @@ -250,7 +250,8 @@ dsn_host() { # reach the enricher rather than Postgres. Only flag hosts we can positively # identify — an unparseable DSN must not leave the operator with no way forward. dsn_host_reachable() { - case "$(dsn_host "$1")" in + local dsn="$1" + case "$(dsn_host "$dsn")" in localhost | 127.* | ::1 | 0.0.0.0 | /*) return 1 ;; *) return 0 ;; esac