Open alexbugl opened 1 year ago
To maybe speed a bugfix up a bit, I've created a pull request https://github.com/puppetlabs/puppetlabs-mysql/pull/1540 based on Alex suggestion.
I tested the fix, and it really solved the bug. :) Please apply ...
I've updated the pull request to the current main. Would be really nice to get the bugfix in, unfortunately the fix didn't make it into v13.3.0.
Describe the Bug
After update of v13.1.0 to v13.2.0 of the puppetlabs-mysql module we get the following error:
Expected Behavior
In version v13.2.0 you added the type
Optional[Array[String[1]]]
to the parametertls_options
, which breaks one of the modules we use (puppet-icinga) -- this tries to create a MySQL DB using this code:So it writes a string into attribute
tls_options
of typemysql::db
, which does not match the associated type. But your code inlib/puppet/type/mysql_user.rb
seems to still be able to cope with strings, as it creates an array out of a single string:Environment
Suggested Solution
A possible solution could be to correct the type (untested at the moment):