puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 790 forks source link

After upgrading to MySQL module v15, get an error when setting root_password #1631

Open rychannel opened 3 months ago

rychannel commented 3 months ago

Describe the Bug

I get the following error in Impact Analysis, Internal Server Error: org.jruby.exceptions.RuntimeError: (PreformattedError) Evaluation Error: Mysql_user[root@localhost]['password_hash'] contains a Deferred value. It will be converted to the String 'Deferred({'name' => 'mysql::password', 'arguments' => ['somerandompassword234']})' (file: /etc/puppetlabs/code/environments/linux_test_cdpe_ia_1716222107109/modules/mysql/manifests/server/root_password.pp, line: 33)

Expected Behavior

Don't get an error

Steps to Reproduce

Steps to reproduce the behavior: Upgraded to MySQL module v15

Environment

Additional Context

rychannel commented 3 months ago

I believe this is happening when calling the 'mysql::server' class and specifying the root_password parameter