puppetlabs-firewall
puppetlabs-firewall copied to clipboard
Fix table parsing with * in non-table names
Summary
If iptables-save
contains *
in a non-table names it will break table parsing:
- Current table rules after encountered
*
will be consideredabsent
and will be forcefully added on every puppet run without duplicate checks (cuz puppet thinks that there are no more rules in that table) - Next table will be skipped completely.
Additional Context
We need to have more iptables-save
parsing tests, there are more bugs at rule level as well (i will open PR tomorrow)
Checklist
- [x] 🟢 Spec tests.
- [x] 🟢 Acceptance tests.
- [x] Manually verified. (For example
puppet apply
)