Skip to content

facts.iptables: add requires_command to all iptables facts#1587

Open
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-iptables-requires-command
Open

facts.iptables: add requires_command to all iptables facts#1587
wowi42 wants to merge 1 commit intopyinfra-dev:3.xfrom
KalvadTech:fix-iptables-requires-command

Conversation

@wowi42
Copy link
Contributor

@wowi42 wowi42 commented Mar 5, 2026

All four iptables fact classes (IptablesRules, Ip6tablesRules, IptablesChains, Ip6tablesChains) were missing requires_command, causing confusing errors on hosts without iptables-save/ip6tables-save instead of cleanly skipping the fact.

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh)
  • Type checking & code style passes (see scripts/dev-lint.sh)

All four iptables fact classes (IptablesRules, Ip6tablesRules,
IptablesChains, Ip6tablesChains) were missing requires_command,
causing confusing errors on hosts without iptables-save/ip6tables-save
instead of cleanly skipping the fact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant