Skip to content

Commit 69b28c6

Browse files
smortexvaol
authored andcommitted
Fix the postgresql::postgresql_password() function
The changes in puppetlabs#1512 introduced a regression when a hash value is not explicitly passed: ``` Puppet Server Error: Evaluation Error: Error while evaluating a Function Call, failed to coerce org.jruby.RubySymbol to java.lang.String ``` Fixes puppetlabs#1528
1 parent 20dc608 commit 69b28c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/functions/postgresql/postgresql_password.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
end
3131

3232
def default_impl(username, password, sensitive = false, hash = nil, salt = nil)
33-
hash = call_function(:'postgresql::default', 'password_encryption') if hash.nil?
33+
hash = call_function('postgresql::default', 'password_encryption') if hash.nil?
3434
password = password.unwrap if password.respond_to?(:unwrap)
3535
if password.is_a?(String) && password.match?(%r{^(md5[0-9a-f]{32}$|SCRAM-SHA-256\$)})
3636
return Puppet::Pops::Types::PSensitiveType::Sensitive.new(password) if sensitive

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy