Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change sql param to default to undef instead of empty string #577

Merged
merged 1 commit into from Oct 3, 2014

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Oct 3, 2014

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.

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.
@igalic
Copy link
Contributor

igalic commented Oct 3, 2014

+1

underscorgan pushed a commit that referenced this pull request Oct 3, 2014
Change sql param to default to undef instead of empty string
@underscorgan underscorgan merged commit e6dceb1 into puppetlabs:master Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants