Skip to content

Commit bf2c8d4

Browse files
author
Colleen Murphy
committed
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.
1 parent b338635 commit bf2c8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/db.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$collate = 'utf8_general_ci',
88
$host = 'localhost',
99
$grant = 'ALL',
10-
$sql = '',
10+
$sql = undef,
1111
$enforce_sql = false,
1212
$ensure = 'present'
1313
) {

0 commit comments

Comments
 (0)