From: Johan Huysmans Date: Fri, 9 Dec 2011 11:47:54 +0000 (+0100) Subject: (#10619) Add the table when deleting rules X-Git-Tag: 0.1.0~34^2~2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=99e83b667f6ec865d0d49557d6f147172e16f194;p=puppet-modules%2Fpuppetlabs-firewall.git (#10619) Add the table when deleting rules This fixes purging from tables other then 'filter'. --- diff --git a/lib/puppet/provider/firewall/iptables.rb b/lib/puppet/provider/firewall/iptables.rb index 6504a14..e5f3afe 100644 --- a/lib/puppet/provider/firewall/iptables.rb +++ b/lib/puppet/provider/firewall/iptables.rb @@ -213,6 +213,8 @@ Puppet::Type.type(:firewall).provide :iptables, :parent => Puppet::Provider::Fir end end + line.unshift("-t", properties[:table]) + # Return array without nils line.compact end