Skip to content

Commit

Permalink
Fix mangling of chain names that contain -f
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Vozeler committed Nov 16, 2015
1 parent d1f0347 commit e36ecf4
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 @@ -356,7 +356,7 @@ def self.rule_to_hash(line, table, counter)
# -f requires special matching:
# only replace those -f that are not followed by an l to
# distinguish between -f and the '-f' inside of --tcp-flags.
values = values.sub(/-f(?!l)(?=.*--comment)/, '-f true')
values = values.sub(/\s-f(?!l)(?=.*--comment)/, ' -f true')
else
values = values.sub(/#{resource_map[bool]}/, "#{resource_map[bool]} true")
end
Expand Down

0 comments on commit e36ecf4

Please sign in to comment.