Skip to content

Commit

Permalink
Merge "if log_file enabled, ensure log_dir is not absent"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 28, 2014
2 parents 3425620 + 74a6f0a commit ad61ad3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@

if $log_file {
neutron_config {
'DEFAULT/log_file': value => $log_file;
'DEFAULT/log_dir': ensure => absent;
'DEFAULT/log_file': value => $log_file;
'DEFAULT/log_dir': value => $log_dir;
}
} else {
if $log_dir {
Expand Down
5 changes: 3 additions & 2 deletions spec/classes/neutron_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,13 @@
shared_examples_for 'with log_file specified' do
before do
params.merge!(
:log_file => '/var/log/neutron/server.log'
:log_file => '/var/log/neutron/server.log',
:log_dir => '/tmp/log/neutron'
)
end
it 'configures logging' do
should contain_neutron_config('DEFAULT/log_file').with_value(params[:log_file])
should contain_neutron_config('DEFAULT/log_dir').with_ensure('absent')
should contain_neutron_config('DEFAULT/log_dir').with_value(params[:log_dir])
end
end

Expand Down

0 comments on commit ad61ad3

Please sign in to comment.