Skip to content

Commit e1c4193

Browse files
committed
Fix puppet-lint violations
These were previously introduced and warnings weren't fatal due to a regression in puppetlabs_spec_helper, which is probably why it was missed. Fixes: 64a7753 Fixes: 6aaa1cf
1 parent 51179f1 commit e1c4193

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manifests/server/default_privileges.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# @param connect_settings Specifies a hash of environment variables used when connecting to a remote server.
1515
# @param psql_path Specifies the path to the psql command.
1616
define postgresql::server::default_privileges (
17-
Optional[String] $target_role = undef,
1817
String $role,
1918
String $db,
2019
String $privilege,
@@ -36,6 +35,7 @@
3635
] $ensure = 'present',
3736
String $group = $postgresql::server::group,
3837
String $psql_path = $postgresql::server::psql_path,
38+
Optional[String] $target_role = undef,
3939
) {
4040

4141
# If possible use the version of the remote database, otherwise
@@ -74,16 +74,16 @@
7474
}
7575

7676
if $target_role != undef {
77-
$_target_role = " FOR ROLE $target_role"
78-
$_check_target_role = "/$target_role"
77+
$_target_role = " FOR ROLE ${target_role}"
78+
$_check_target_role = "/${target_role}"
7979
} else {
8080
$_target_role = ''
8181
$_check_target_role = ''
8282
}
8383

8484
if $schema != '' {
85-
$_schema = " IN SCHEMA $schema"
86-
$_check_schema = " AND nspname = '$schema'"
85+
$_schema = " IN SCHEMA ${schema}"
86+
$_check_schema = " AND nspname = '${schema}'"
8787
} else {
8888
$_schema = ''
8989
$_check_schema = ' AND nspname IS NULL'

0 commit comments

Comments
 (0)