mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
d9b830c3c3
Rewrote AWK state machine to correctly handle: - Multiple allowed_nodes sections (removes all of them) - Comment lines immediately preceding allowed_nodes (discards them) - Empty lines within allowed_nodes section - Indented list items and comments The function now: 1. Buffers comment lines that might precede allowed_nodes 2. When allowed_nodes: is detected, discards buffered comments 3. Skips all content until hitting a non-indented, non-comment line 4. Flushes buffered comments when hitting non-comment content This ensures running the installer multiple times won't create duplicate allowed_nodes sections in config.yaml. Tested with script that verifies duplicate sections are removed correctly.