From 59ec95ceb0e584cdfb33de5d1c2b3177d8191943 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 98f051c05..d0a880b0d 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',