mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 00:06:38 +00:00
Fix bug reading default value for combine_output
The default should be set to true so we maintain backwards. compatibility. readconfig.go was altered due to bug reading default value. This was tested by adding unit tests to readconfig_test.go for positive and negative scenarios. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
ae1279a553
commit
a841e3d7f3
@ -87,7 +87,7 @@ func (ReadConfig) Read(hasEnv HasEnv) WatchdogConfig {
|
||||
|
||||
cfg.contentType = hasEnv.Getenv("content_type")
|
||||
|
||||
if isBoolValueSet("combine_output") {
|
||||
if isBoolValueSet(hasEnv.Getenv("combine_output")) {
|
||||
cfg.combineOutput = parseBoolValue(hasEnv.Getenv("combine_output"))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user