Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)

file { 'mysql.dir':
ensure => directory,
path => $mysql::config_dir,
Expand All @@ -439,7 +439,7 @@


### Include custom class if $my_class is set
if $mysql::my_class {
if $mysql::my_class != '' {
include $mysql::my_class
}

Expand Down