Skip to content

Commit 53da2db

Browse files
committed
Fixing managed_dir_path condition
1 parent c69144f commit 53da2db

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

manifests/server/managed_dirs.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$logbindir = dirname($logbin)
3333

3434
#Stop puppet from managing directory if just a filename/prefix is specified or is not already managed
35-
if ($logbindir != '.' and !($logbindir in $managed_dirs_path)) {
35+
if ($logbindir != '.' or !($logbindir in $managed_dirs_path)) {
3636
file { $logbindir:
3737
ensure => directory,
3838
mode => '0700',

spec/acceptance/mysql_server_spec.rb

+4-7
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,17 @@ class { 'mysql::server':
5151
let(:pp) do
5252
<<-MANIFEST
5353
class { '::mysql::server':
54-
root_password => 'strongpassword',
55-
remove_default_accounts => true,
56-
restart => true,
5754
override_options => {
5855
'mysqld' => {
5956
'log-bin' => '/var/log/mariadb/mariadb-bin.log',}
6057
}
6158
}
6259
MANIFEST
63-
end
60+
end
6461

65-
it 'can be set' do
66-
apply_manifest(pp, catch_failures: true) do |r|
67-
expect(r.stderr).to be_empty
62+
it 'can be set' do
63+
apply_manifest(pp, catch_failures: true) do |r|
64+
expect(r.stderr).to be_empty
6865
end
6966
end
7067
end

0 commit comments

Comments
 (0)