Skip to content

Commit 8b222cb

Browse files
authored
Merge pull request #1237 from span786/CAT-2088-puppetlabs-firewall-rejecting-valid-iptables-syntax
2 parents 93d61f4 + b99c956 commit 8b222cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ Data type: `Optional[Enum['none', 'ipsec']]`
879879

880880
##### `ipset`
881881

882-
Data type: `Optional[Variant[Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/]]]]`
882+
Data type: `Optional[Variant[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/]]]]`
883883
_*this data type contains a regex that may not be accurately reflected in generated documentation_
884884

885885
Matches against the specified ipset list.

lib/puppet/type/firewall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@
948948
DESC
949949
},
950950
ipset: {
951-
type: 'Optional[Variant[Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/]]]]',
951+
type: 'Optional[Variant[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/]]]]',
952952
desc: <<-DESC
953953
Matches against the specified ipset list.
954954
Requires ipset kernel module. Will accept a single element or an array.

0 commit comments

Comments
 (0)