Closed cruelsmith closed 1 year ago
The puppet function mysql::password does not allow a second parameter anymore to toggle the return value to be a sensitive. Instead the puppet run fails with a wrong number of arguments message.
mysql::password
This issue has been introduced with #1557 https://github.com/puppetlabs/puppetlabs-mysql/commit/effc6846e132fe0c41d279cb1ff03e989d4e3cb7#diff-f63c8340e97cb15646da94767358abc703a41ba144fa217d9585e00b8a04b289L22-R22
mysql('password', true)
sensitive('*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19')
Fails with
Error while evaluating a Function Call: wrong number of arguments (given 2, expected 1)
Note: That the rspec test for this case is currently simply skipped instead of testing it. This needs to also be fixed via the same PR. https://github.com/puppetlabs/puppetlabs-mysql/blob/00255c75fa8cd7cf112facf77c844535fe6a71fc/spec/functions/mysql_password_spec.rb#L26-L30
Describe the Bug
The puppet function
mysql::password
does not allow a second parameter anymore to toggle the return value to be a sensitive. Instead the puppet run fails with a wrong number of arguments message.This issue has been introduced with #1557 https://github.com/puppetlabs/puppetlabs-mysql/commit/effc6846e132fe0c41d279cb1ff03e989d4e3cb7#diff-f63c8340e97cb15646da94767358abc703a41ba144fa217d9585e00b8a04b289L22-R22
Expected Behavior
Steps to Reproduce
Fails with
Environment
Additional Context
Note: That the rspec test for this case is currently simply skipped instead of testing it. This needs to also be fixed via the same PR. https://github.com/puppetlabs/puppetlabs-mysql/blob/00255c75fa8cd7cf112facf77c844535fe6a71fc/spec/functions/mysql_password_spec.rb#L26-L30