You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a firewall name has an underscore in it, it doesn't match the current regex for firewall.name resulting in an error.
Error: Failed to apply catalog: Parameter name failed on Firewall[040_apache_status_inbound 1xx.xxx.xxx.xx]: firewall.name expects a match for Pattern[/(^\d+(?:[ \t-]\S+)+$)/], got '040_apache_status_inbound 1xx.xxx.xxx.xx'
Expected Behavior
Underscores have been supported in the past and are supported by the underlying systems. Would like them to continue to be supported.
Steps to Reproduce
Steps to reproduce the behavior:
Create or update a firewall name with an underscore.
run puppet.
Environment
Version 7.0.2
Puppet version 7.25,0-1
Platform Ubuntu 20.04 (tested on 20.04 and 22.04)
Additional Context
Regex in lib/puppet/type/firewall.rb can be updated from: type: 'Pattern[/(^\d+(?:[ \t-]\S+)+$)/]',
to: type: 'Pattern[/(^\d+(?:[ \t-_]\S+)+$)/]',
The text was updated successfully, but these errors were encountered:
Describe the Bug
If a firewall name has an underscore in it, it doesn't match the current regex for firewall.name resulting in an error.
Error: Failed to apply catalog: Parameter name failed on Firewall[040_apache_status_inbound 1xx.xxx.xxx.xx]: firewall.name expects a match for Pattern[/(^\d+(?:[ \t-]\S+)+$)/], got '040_apache_status_inbound 1xx.xxx.xxx.xx'
Expected Behavior
Underscores have been supported in the past and are supported by the underlying systems. Would like them to continue to be supported.
Steps to Reproduce
Steps to reproduce the behavior:
Environment
Additional Context
Regex in
lib/puppet/type/firewall.rb
can be updated from:type: 'Pattern[/(^\d+(?:[ \t-]\S+)+$)/]',
to:
type: 'Pattern[/(^\d+(?:[ \t-_]\S+)+$)/]',
The text was updated successfully, but these errors were encountered: