Skip to content

Commit be683b7

Browse files
committed
Fix invalid subname in database.ini
For the postgres subname, the module was writing the wrong value for the database instance name. This commit fixes that bug.
1 parent 4ad02dd commit be683b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/server/database_ini.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
} elsif $database == 'postgres' {
7474
$classname = 'org.postgresql.Driver'
7575
$subprotocol = 'postgresql'
76-
$subname = "//${database_host}:${database_port}/${database}"
76+
$subname = "//${database_host}:${database_port}/${database_name}"
7777

7878
##Only setup for postgres
7979
ini_setting {'puppetdb_psdatabase_username':

0 commit comments

Comments
 (0)