You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`postgresql::params` inherits from `postgresql::globals` so any variable
defined in `postgresql::globals` can be accessed by reading it from
`postgresql::params`, making it redundant to check both.
diff --git a/functions/default.pp b/functions/default.pp
index e36610b..41b5006 100644
--- a/functions/default.pp
+++ b/functions/default.pp
@@ -8,8 +8,7 @@ function postgresql::default(
) {
include postgresql::params
- #search for the variable name in params first
- #then fall back to globals if not found
- pick(getvar("postgresql::params::${parameter_name}"),
- getvar("postgresql::globals::${parameter_name}"))
+ # Search for the variable name in params.
+ # params inherits from globals, so it will also catch these variables.
+ pick(getvar("postgresql::params::${parameter_name}"))
}
0 commit comments