Skip to content

Commit af4e7e5

Browse files
authored
Merge pull request #1348 from qha/main
Repair check of logbindir
2 parents 27ee01b + 338f70e commit af4e7e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manifests/server/managed_dirs.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
}
2424
}
2525
}
26+
} else {
27+
$managed_dirs_path = []
2628
}
2729

2830
$logbin = pick($options['mysqld']['log-bin'], $options['mysqld']['log_bin'], false)
@@ -31,7 +33,7 @@
3133
$logbindir = dirname($logbin)
3234

3335
#Stop puppet from managing directory if just a filename/prefix is specified or is not already managed
34-
if ($logbindir != '.' or !($logbindir in $managed_dirs_path)) {
36+
if (!($logbindir == '.' or $logbindir in $managed_dirs_path)) {
3537
file { $logbindir:
3638
ensure => directory,
3739
mode => '0700',

0 commit comments

Comments
 (0)