Merge pull request #286 from jalli/master
Add zero length string to join() function
This commit is contained in:
commit
f021ef3cdb
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@ define postgresql::server::pg_hba_rule(
|
||||||
default => ['trust', 'reject', 'md5', 'password', 'gss', 'sspi', 'krb5', 'ident', 'peer', 'ldap', 'radius', 'cert', 'pam', 'crypt']
|
default => ['trust', 'reject', 'md5', 'password', 'gss', 'sspi', 'krb5', 'ident', 'peer', 'ldap', 'radius', 'cert', 'pam', 'crypt']
|
||||||
}
|
}
|
||||||
|
|
||||||
$auth_method_regex = join(['^(', join($allowed_auth_methods, '|'), ')$'])
|
$auth_method_regex = join(['^(', join($allowed_auth_methods, '|'), ')$'],'')
|
||||||
validate_re($auth_method, $auth_method_regex,
|
validate_re($auth_method, $auth_method_regex,
|
||||||
join(["The auth_method you specified [${auth_method}] must be one of: ", join($allowed_auth_methods, ', ')]))
|
join(["The auth_method you specified [${auth_method}] must be one of: ", join($allowed_auth_methods, ', ')],''))
|
||||||
|
|
||||||
# Create a rule fragment
|
# Create a rule fragment
|
||||||
$fragname = "pg_hba_rule_${name}"
|
$fragname = "pg_hba_rule_${name}"
|
||||||
|
|
Loading…
Reference in a new issue