Skip to content

Commit

Permalink
fix overlapping iptables arguments for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
haught committed Nov 15, 2019
1 parent c784bea commit 657a2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/firewall/iptables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def self.munge_resource_map_from_existing_values(resource_map_original, compare)
resource_map_new[argument][0] = "-m #{ipt_module} #{resource_map_original[argument].first}"
break
end
elsif compare.include?(resource_map_original[argument])
elsif compare.include?(resource_map_original[argument]+' ')
resource_map_new[argument] = "-m #{ipt_module} #{resource_map_original[argument]}"
break
end
Expand Down

0 comments on commit 657a2b1

Please sign in to comment.