log: Correct deprecation warning for watch_log_file
This is follow-up of ec4f21b17c
and fix
the deprecation warning message because the parameter still has
effect.
Change-Id: Ifecf36e2d8807933f44e6737a3a1c63ee1f830d0
This commit is contained in:
@@ -137,8 +137,9 @@ define oslo::log(
|
|||||||
$watch_log_file = undef,
|
$watch_log_file = undef,
|
||||||
){
|
){
|
||||||
|
|
||||||
if $watch_log_file {
|
if $watch_log_file != undef {
|
||||||
warning('The watch_log_file parameter has been deprecated and has no effect.')
|
warning("The watch_log_file parameter has been deprecated \
|
||||||
|
and will be removed in a future release.")
|
||||||
$watch_log_file_real = $watch_log_file
|
$watch_log_file_real = $watch_log_file
|
||||||
} else {
|
} else {
|
||||||
$watch_log_file_real = $facts['os_service_default']
|
$watch_log_file_real = $facts['os_service_default']
|
||||||
|
Reference in New Issue
Block a user