]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(#10619) Add the table when deleting rules
authorJohan Huysmans <johan.huysmans@inuits.be>
Fri, 9 Dec 2011 11:47:54 +0000 (12:47 +0100)
committerKen Barber <ken@bob.sh>
Sun, 25 Mar 2012 02:43:57 +0000 (03:43 +0100)
This fixes purging from tables other then 'filter'.

lib/puppet/provider/firewall/iptables.rb

index 6504a14a2bdf0b1d9d9852376b6886fb6520955c..e5f3afe69b60208da80ddf4db3f039c5bb02f610 100644 (file)
@@ -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