Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

mysql: fix test for future parser. #65

Merged
merged 2 commits into from
Sep 29, 2015

Conversation

gwarf
Copy link
Contributor

@gwarf gwarf commented Sep 25, 2015

Hi Alessandro,
Fixes for future parser.
Not sure if we could (and if it would be preferable to) initialize source_dir and my_class at false or undef in params.pp (as proposed in #65 by @wooziethe), but as I saw equivalent things merged to example42/php I choose to modify the test.
Thanks!

@@ -423,7 +423,7 @@
}

# The whole mysql configuration directory can be recursively overriden
if $mysql::source_dir {
if $mysql::source_dir != '' {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change these conditionals to :
if $mysql::source_dir and $mysql::source_dir != '' {

so that nothing is done if the value is false (boolean)

@gwarf
Copy link
Contributor Author

gwarf commented Sep 29, 2015

I just pushed a commit to update the conditionals, thanks.

alvagante added a commit that referenced this pull request Sep 29, 2015
@alvagante alvagante merged commit 6b458d2 into example42:master Sep 29, 2015
@alvagante
Copy link
Member

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants