Skip to content

Commit

Permalink
Fix rtkwlf#83
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashi-vrj committed Nov 2, 2019
1 parent 12b6bd6 commit f5611f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
node.rm_normal("simple_iptables", "ipv6")
# Then run all the simple_iptables_* resources
run_context.resource_collection.each do |resource|
if resource.kind_of?(Chef::Resource::SimpleIptablesRule)
puts resource.class.resource_name
if resource.class.resource_name.to_s == "simple_iptables_rule"
Chef::Log.debug("about to run simple_iptables_rule[#{resource.chain}]")
resource.run_action(resource.action)
elsif resource.kind_of?(Chef::Resource::SimpleIptablesPolicy)
elsif resource.class.resource_name.to_s == "simple_iptables_policy"
Chef::Log.debug("about to run simple_iptables_policy[#{resource.chain}]")
resource.run_action(resource.action)
end
Expand Down

0 comments on commit f5611f9

Please sign in to comment.