Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit ad222fa

Browse files
author
Anton Koldaev
committed
Fix the usage of deprecated feature
Should be fine to just use name_attribute here. ``` Deprecated features used! Cannot specify both default and name_property together on property chain of resource simple_iptables_policy. Only one (name_property) will be obeyed. In Chef 13, this will become an error. at 1 location: - /var/chef/cache/cookbooks/simple_iptables/resources/policy.rb:3:in `class_from_file' ```
1 parent fe0bf95 commit ad222fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
actions :set
22

3-
attribute :chain, :name_attribute => true, :equal_to => ["INPUT", "FORWARD", "OUTPUT", "PREROUTING", "POSTROUTING"], :default => "INPUT"
3+
attribute :chain, :name_attribute => true, :equal_to => ["INPUT", "FORWARD", "OUTPUT", "PREROUTING", "POSTROUTING"]
44
attribute :table, :equal_to => ["filter", "nat", "mangle", "raw"], :default => "filter"
55
attribute :policy, :equal_to => ["ACCEPT", "DROP"], :required => true
66
attribute :ip_version, :equal_to => [:ipv4, :ipv6, :both], :default => :ipv4

0 commit comments

Comments
 (0)