Skip to content

Commit

Permalink
Add a comment referencing where this Enum is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
figless committed Oct 24, 2024
1 parent 6084f19 commit ab6983e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/puppet/functions/postgresql/postgresql_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
required_param 'Variant[String[1], Integer]', :username
required_param 'Variant[String[1], Sensitive[String[1]], Integer]', :password
optional_param 'Boolean', :sensitive
# Note that this Enum is also defined in:
# types/pg_password_encryption.pp
optional_param 'Optional[Enum["md5", "scram-sha-256"]]', :hash
optional_param 'Optional[Variant[String[1], Integer]]', :salt
return_type 'Variant[String, Sensitive[String]]'
Expand Down
2 changes: 2 additions & 0 deletions types/pg_password_encryption.pp
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# @summary the supported password_encryption
# Note that this Enum is also defined in:
# lib/puppet/functions/postgresql/postgresql_password.rb
type Postgresql::Pg_password_encryption = Enum['md5', 'scram-sha-256']

0 comments on commit ab6983e

Please sign in to comment.