Skip to content
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 tls_options to be of String #1540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

janit42
Copy link

@janit42 janit42 commented Mar 3, 2023

the type of $tls_options has recently been changed to Array in 5131e0f while the code in lib/puppet/type/mysql_user.rb is able to work with it as an Array or a String.

This change allows $tls_options to by a String in addition to Array, which re-establishes compatibility with other modules, like puppet-icinga

Fixes #1539

@janit42 janit42 requested a review from a team as a code owner March 3, 2023 10:36
@CLAassistant
Copy link

CLAassistant commented Mar 3, 2023

CLA assistant check
All committers have signed the CLA.

@puppet-community-rangefinder
Copy link

mysql::db is a type

Breaking changes to this file WILL impact these 68 modules (exact match):
Breaking changes to this file MAY impact these 16 modules (near match):

This module is declared in 140 of 580 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@bastelfreak
Copy link
Collaborator

@janit42 please rebase against main to get rid of the merge commit.

the type of $tls_options has recently been changed to Array in 5131e0f while the code in lib/puppet/type/mysql_user.rb is able to work with it as an Array or a String.

This change allows $tls_options to by a String in addition to Array, which re-establishes compatibility with other modules, like puppet-icinga

Fixes puppetlabs#1539
@janit42
Copy link
Author

janit42 commented Mar 14, 2024

@janit42 please rebase against main to get rid of the merge commit.

thanks for the heads-up @bastelfreak ! Anything else I can do for now?

@bastelfreak
Copy link
Collaborator

@janit42 can you maybe add a unit test for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mysql::Db parameter 'tls_options' expects a value of type Undef or Array, got String
5 participants