Skip to content

Commit

Permalink
Merge pull request #89 from kbarber/ticket/master/10322-error_with_sa…
Browse files Browse the repository at this point in the history
…me_chain_diff_table

(#10322) Insert order hash included chains from different tables
  • Loading branch information
dcarley committed Jul 25, 2012
2 parents e9fd6d1 + 47318a0 commit a6cd6da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/puppet/provider/firewall/iptables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ def insert_order
debug("[insert_order]")
rules = []

# Find list of current rules based on chain
# Find list of current rules based on chain and table
self.class.instances.each do |rule|
rules << rule.name if rule.chain == resource[:chain].to_s
if rule.chain == resource[:chain].to_s and rule.table == resource[:table].to_s
rules << rule.name
end
end

# No rules at all? Just bail now.
Expand Down

0 comments on commit a6cd6da

Please sign in to comment.