mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
3e38159882
The awk logic was removing allowed_nodes sections but leaving their comment headers behind. When multiple sections existed, comments would accumulate. New approach: - Buffer all comment lines encountered outside sections - When a non-comment line is found, flush buffered comments - When allowed_nodes is found, discard buffered comments (they belonged to the section we're removing) - This cleanly removes section headers like: '# Cluster nodes (auto-discovered during installation)' '# These nodes are allowed to request...' Tested with config containing duplicate allowed_nodes sections - now correctly produces clean output with all duplicates and headers removed.