-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ports parameters as Stdlib::Ports #610
Conversation
Currently the ports parameters must be specified as one of: * `'1234'` * `'1234,5678'` * `['1234']` * `['1234','5678']` Allow it to also be specified as the `Stdlib::Port` type. e.g. * `1234` * `[1234]` * `[1234,5678]` To encourage this direction the documentation has been updated to use `Stdlib::Port` types. The old formats are still supported. Motivation here is we were happily using v4 of this module with integer specifications for ports and this is better anyway. Some future version could drop the old stringified ports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I see this correctly that the old syntax is still valid, so it's not a breaking change?
Yep that should be the case and was my intention. Its a good candidate for a breaking change down the line but no urgency from me on that. |
@traylenator could you do me a favour and also provide a PR as breaking change that drops the other types? <3 Just so that we don't forget it for the next major release? |
Previously it was possible to set the ports parameter as: * `'1234'` * `'1234,5678'` * `['1234']` * `['1234','5678']` Since puppetlabs#610 the ports parameter could also be specified with `Stdlib::Ports`: * `1234` * `[1234]` * `[1234, 5678]` With this patch all the previous string values are deprecated and will fail. The `Stdlib::Port` values must be used.
Previously it was possible to set the ports parameter as: * `'1234'` * `'1234,5678'` * `['1234']` * `['1234','5678']` Since puppetlabs#610 the ports parameter could also be specified with `Stdlib::Ports`: * `1234` * `[1234]` * `[1234, 5678]` With this patch all the previous string values are deprecated and will fail. The `Stdlib::Port` values must be used.
Summary
Currently the ports parameters must be specified as one of:
'1234'
'1234,5678'
['1234']
['1234','5678']
Allow it to also be specified as the
Stdlib::Port
type. e.g.1234
[1234]
[1234,5678]
To encourage this direction the documentation has been updated to use
Stdlib::Port
types.The old formats are still supported.
Motivation here is we were happily using v4 of this module with integer specifications for ports and this is better anyway.
Some future version could drop the old stringified ports.
Checklist
puppet apply
)