Skip to content

Commit 396aec2

Browse files
committed
define Enum on supported encryption types for postgresql_password function
1 parent 05a7809 commit 396aec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/puppet/functions/postgresql/postgresql_password.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
required_param 'Variant[String[1], Integer]', :username
2525
required_param 'Variant[String[1], Sensitive[String[1]], Integer]', :password
2626
optional_param 'Boolean', :sensitive
27-
optional_param 'Optional[Postgresql::Pg_password_encryption]', :hash
27+
optional_param 'Optional[Enum["md5", "scram-sha-256"]]', :hash
2828
optional_param 'Optional[Variant[String[1], Integer]]', :salt
2929
return_type 'Variant[String, Sensitive[String]]'
3030
end

0 commit comments

Comments
 (0)