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:
Takashi Kajinami
2024-09-24 11:39:42 +09:00
parent ec4f21b17c
commit 004f278703

View File

@@ -137,8 +137,9 @@ define oslo::log(
$watch_log_file = undef,
){
if $watch_log_file {
warning('The watch_log_file parameter has been deprecated and has no effect.')
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']