Accept empty strings for log_dir
An empty string is an acceptable value of this entry, and it forces logging to stdout/stderr, which is useful when running on containers. Change-Id: Ifdd11eb47ccbd0aee4ec8d5a1d8121944934869a
This commit is contained in:
parent
5cb306a1c0
commit
c524b49b15
@ -111,7 +111,11 @@ class cinder::logging(
|
||||
$use_syslog_real = pick($::cinder::use_syslog,$use_syslog)
|
||||
$use_stderr_real = pick($::cinder::use_stderr,$use_stderr)
|
||||
$log_facility_real = pick($::cinder::log_facility,$log_facility)
|
||||
$log_dir_real = pick($::cinder::log_dir,$log_dir)
|
||||
if $log_dir != '' {
|
||||
$log_dir_real = pick($::cinder::log_dir,$log_dir)
|
||||
} else {
|
||||
$log_dir_real = $log_dir
|
||||
}
|
||||
$debug_real = pick($::cinder::debug,$debug)
|
||||
|
||||
oslo::log { 'cinder_config':
|
||||
|
Loading…
x
Reference in New Issue
Block a user