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: I8c3a635688ef98e6038c2bee33cd253da8d3baf0
This commit is contained in:
parent
5832f169d1
commit
f12aea2145
|
@ -111,7 +111,11 @@ class heat::logging(
|
|||
$use_syslog_real = pick($::heat::use_syslog,$use_syslog)
|
||||
$use_stderr_real = pick($::heat::use_stderr,$use_stderr)
|
||||
$log_facility_real = pick($::heat::log_facility,$log_facility)
|
||||
$log_dir_real = pick($::heat::log_dir,$log_dir)
|
||||
if $log_dir != '' {
|
||||
$log_dir_real = pick($::heat::log_dir,$log_dir)
|
||||
} else {
|
||||
$log_dir_real = $log_dir
|
||||
}
|
||||
$debug_real = pick($::heat::debug,$debug)
|
||||
|
||||
oslo::log { 'heat_config':
|
||||
|
|
Loading…
Reference in New Issue