Merge pull request #702 from skyscrapers/quote_dbname
Use double qoutes around database name.
This commit is contained in:
commit
f59899b921
1 changed files with 1 additions and 1 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue