Skip to content

Commit

Permalink
update regex to match nameserver
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanthao committed Dec 24, 2024
1 parent ff53941 commit aa0a1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/preflights/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aa0a1e6

Please sign in to comment.