From a016d0d6697ef54e930f83f7b287727124a4c8ca Mon Sep 17 00:00:00 2001 From: janit42 <53855472+janit42@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:17:48 +0100 Subject: [PATCH] allow tls_options to be of String the type of $tls_options has recently been changed to Array in 5131e0f806 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 https://github.com/puppetlabs/puppetlabs-mysql/issues/1539 --- manifests/db.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/db.pp b/manifests/db.pp index 36a298459..4e54bef5b 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -49,7 +49,7 @@ define mysql::db ( String[1] $user, Variant[String, Sensitive[String]] $password, - Optional[Array[String[1]]] $tls_options = undef, + Optional[Variant[String[1], Array[String[1]]]] $tls_options = undef, String $dbname = $name, String[1] $charset = 'utf8', String[1] $collate = 'utf8_general_ci',