Skip to content

Commit

Permalink
update regex to allow underscores in firewall name
Browse files Browse the repository at this point in the history
update reference as well with puppet strings.
  • Loading branch information
dlware committed Nov 2, 2023
1 parent b64b044 commit edb460d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,7 @@ Data type: `Optional[Variant[String[1], Integer]]`

##### `goto`

Data type: `Optional[Pattern[/^[a-zA-Z0-9_]+$/]]`
_*this data type contains a regex that may not be accurately reflected in generated documentation_
Data type: `Optional[String[1]]`

The value for the iptables --goto parameter. Normal values are:

Expand Down Expand Up @@ -927,8 +926,7 @@ Data type: `Optional[Boolean]`

##### `jump`

Data type: `Optional[Pattern[/^[a-zA-Z0-9_]+$/]]`
_*this data type contains a regex that may not be accurately reflected in generated documentation_
Data type: `Optional[String[1]]`

This value for the iptables --jump parameter and the action to perform on a match. Common values are:

Expand Down Expand Up @@ -1699,7 +1697,7 @@ The following parameters are available in the `firewall` type.

namevar

Data type: `Pattern[/(^\d+(?:[ \t-]\S+)+$)/]`
Data type: `Pattern[/(^\d+(?:[ \t-_]\S+)+$)/]`
_*this data type contains a regex that may not be accurately reflected in generated documentation_

The canonical name of the rule. This name is also used for ordering
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/firewall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
DESC
},
name: {
type: 'Pattern[/(^\d+(?:[ \t-]\S+)+$)/]',
type: 'Pattern[/(^\d+(?:[ \t-_]\S+)+$)/]',
behaviour: :namevar,
desc: <<-DESC
The canonical name of the rule. This name is also used for ordering
Expand Down

0 comments on commit edb460d

Please sign in to comment.