Skip to content

Commit

Permalink
Merge pull request #63 from kbarber/ticket/master/13192_allvalidchain…
Browse files Browse the repository at this point in the history
…s_order

(#13192) Fix allvalidchain iteration
  • Loading branch information
dcarley committed Mar 17, 2012
2 parents f5e5270 + a9b023b commit 20f77b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/firewallchain/iptables_chain.rb
Expand Up @@ -61,7 +61,7 @@ def destroy
if @resource[:name] =~ InternalChains
self.warn "Attempting to destroy internal chain #{@resource[:name]}"
end
allvalidchains do |t, table, chain|
allvalidchains do |t, chain, table|
debug "Deleting chain #{chain} on table #{table}"
t.call ['-t',table,'-X',chain]
end
Expand All @@ -73,7 +73,7 @@ def exists?

def policy=(value)
return if value == :empty
allvalidchains do |t, table, chain|
allvalidchains do |t, chain, table|
p = ['-t',table,'-P',chain,value.to_s.upcase]
debug "[set policy] #{t} #{p}"
t.call p
Expand Down

0 comments on commit 20f77b2

Please sign in to comment.