Change sql param to default to undef instead of empty string

The future parser treats the empty string '' as a truthy value. This
means that mysql::db will always try to include the db import exec in
the catalog. With the empty string as the $sql value, the command
attempts to import '' into a database, which fails. This patch changes
the default $sql value to undef so that the exec won't be included if
there is no sql to import.
This commit is contained in:
Colleen Murphy 2014-10-03 11:56:18 -07:00
parent b338635919
commit bf2c8d4bc0

View file

@ -7,7 +7,7 @@ define mysql::db (
$collate = 'utf8_general_ci',
$host = 'localhost',
$grant = 'ALL',
$sql = '',
$sql = undef,
$enforce_sql = false,
$ensure = 'present'
) {