Merge "Remove watch_log_file"
This commit is contained in:
3 changed files with 4 additions and 20 deletions
@@ -106,12 +106,6 @@
#(Optional)Enablesordisablesfatalstatusofdeprecations(booleanvalue).
#Defaultsto$facts['os_service_default']
#
#DEPRECATEDPARAMETERS
#
#[*watch_log_file*]
#(Optional)Useslogginghandlerdesignedtowatchfilesystem(booleanvalue).
#Defaultstoundef
#
defineoslo::log(
$debug=$facts['os_service_default'],
$log_config_append=$facts['os_service_default'],
@@ -133,18 +127,8 @@ define oslo::log(
$instance_format=$facts['os_service_default'],
$instance_uuid_format=$facts['os_service_default'],
$fatal_deprecations=$facts['os_service_default'],
#DEPRECATEDPARMETERS
$watch_log_file=undef,
){
if $watch_log_file != undef {
warning("The watch_log_file parameter has been deprecated \
and will be removed in a future release.")
$watch_log_file_real = $watch_log_file
}else{
$watch_log_file_real = $facts['os_service_default']
}
$default_log_levels_real = $default_log_levels ? {
Hash => join(sort(join_keys_to_values($default_log_levels, '=')), ','),
Array => join(sort($default_log_levels), ','),
@@ -165,7 +149,6 @@ and will be removed in a future release.")
'DEFAULT/log_date_format'=>{ value => $log_date_format },
'DEFAULT/log_file'=>{ value => $log_file },
'DEFAULT/log_dir'=>{ value => $log_dir },
'DEFAULT/watch_log_file'=>{ value => $watch_log_file_real },
'DEFAULT/use_syslog'=>{ value => $use_syslog },
'DEFAULT/use_journal'=>{ value => $use_journal },
'DEFAULT/use_json'=>{ value => $use_json },
@@ -0,0 +1,4 @@
---
upgrade:
- |
The ``oslo::log::watch_log_file`` parameter has been removed.
@@ -13,7 +13,6 @@ describe 'oslo::log' do
is_expected.to contain_keystone_config('DEFAULT/log_date_format').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/log_file').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/log_dir').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/watch_log_file').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/use_syslog').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/use_journal').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('DEFAULT/use_json').with_value('<SERVICE DEFAULT>')
@@ -39,7 +38,6 @@ describe 'oslo::log' do
:log_date_format => '%Y-%m-%d %H:%M:%S',
:log_file => '/var/log/keystone/keystone.log',
:log_dir => '/var/log/keystone',
:watch_log_file => true,
:use_syslog => true,
:use_journal => true,
:use_json => true,
@@ -67,7 +65,6 @@ describe 'oslo::log' do
is_expected.to contain_keystone_config('DEFAULT/log_date_format').with_value('%Y-%m-%d %H:%M:%S')
is_expected.to contain_keystone_config('DEFAULT/log_file').with_value('/var/log/keystone/keystone.log')
is_expected.to contain_keystone_config('DEFAULT/log_dir').with_value('/var/log/keystone')
is_expected.to contain_keystone_config('DEFAULT/watch_log_file').with_value(true)
is_expected.to contain_keystone_config('DEFAULT/use_syslog').with_value(true)
is_expected.to contain_keystone_config('DEFAULT/use_journal').with_value(true)
is_expected.to contain_keystone_config('DEFAULT/use_json').with_value(true)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.