From aa0a1e6b906c97d92308f7fd29c855944e6305b0 Mon Sep 17 00:00:00 2001 From: Gerard Nguyen Date: Tue, 24 Dec 2024 12:16:11 +1100 Subject: [PATCH] update regex to match nameserver --- pkg/preflights/host-preflight.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/preflights/host-preflight.yaml b/pkg/preflights/host-preflight.yaml index 9509b2cfe..091e0fdde 100644 --- a/pkg/preflights/host-preflight.yaml +++ b/pkg/preflights/host-preflight.yaml @@ -446,7 +446,7 @@ spec: - textAnalyze: checkName: Nameserver Configuration fileName: host-collectors/run-host/resolv.conf.txt - regex: '^nameserver\s+\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s*$' + regex: '(?m)^nameserver\s+\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s*$' outcomes: - fail: when: "false"