Commit 3e5d1e7
fix(gitlab): scope dns_servers detection to [containers] section
The previous grep/sed searched the whole file, so a dns_servers key
in any other section (e.g. [network]) would trigger a false-positive
check and replace the wrong key. Switch to awk that tracks whether the
current line is inside [containers] for both the existence check and
the in-place replacement.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c0d0b15 commit 3e5d1e7
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments