Merge pull request #702 from skyscrapers/quote_dbname

Use double qoutes around database name.
This commit is contained in:
David Schmitt 2015-11-09 10:31:58 +00:00
commit f59899b921

View file

@ -73,7 +73,7 @@ define postgresql::server::database(
}
postgresql_psql { "Create db '${dbname}'":
command => "CREATE DATABASE ${dbname} WITH OWNER=${owner} ${template_option} ${encoding_option} ${locale_option} ${tablespace_option}",
command => "CREATE DATABASE \"${dbname}\" WITH OWNER=${owner} ${template_option} ${encoding_option} ${locale_option} ${tablespace_option}",
unless => "SELECT datname FROM pg_database WHERE datname='${dbname}'",
db => $default_db,
require => Class['postgresql::server::service']