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

Commit b483d6b

Browse files
committed
Merge pull request #63 from dblessing/feature/comment_name
Default comment to name attribute
2 parents 27a4b4d + 9d8bc66 commit b483d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/rule.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
attribute :direction, :equal_to => ["INPUT", "FORWARD", "OUTPUT", "PREROUTING", "POSTROUTING", :none], :default => "INPUT"
88
attribute :chain_condition, :kind_of => [String]
99
attribute :weight, :kind_of => Integer, :default => 50
10-
attribute :comment, :kind_of => String
10+
attribute :comment, :kind_of => String, :default => lazy { |r| r.name }
1111
attribute :ip_version, :equal_to => [:ipv4, :ipv6, :both], :default => :ipv4
1212

1313
def initialize(*args)

0 commit comments

Comments
 (0)