]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Accidentally deleted the conversion to -D
authorJoe Julian <me@joejulian.name>
Sat, 25 May 2013 00:47:53 +0000 (17:47 -0700)
committerJoe Julian <me@joejulian.name>
Sat, 25 May 2013 00:47:53 +0000 (17:47 -0700)
lib/puppet/provider/firewall/iptables.rb

index 2db7dcfa2e73aa42de0d3d9975223c0718861cd2..d47effa888974065bb6e8ee29044160e8da69920 100644 (file)
@@ -278,7 +278,7 @@ Puppet::Type.type(:firewall).provide :iptables, :parent => Puppet::Provider::Fir
 
   def delete_args
     # Split into arguments
-    line = properties[:line].split(/\s(?=(?:[^"]|"[^"]*")*$)/).map{|v| v.gsub(/"/, '')}
+    line = properties[:line].gsub(/\-A/, '-D').split(/\s(?=(?:[^"]|"[^"]*")*$)/).map{|v| v.gsub(/"/, '')}
     line.unshift("-t", properties[:table])
   end