diff --git a/core/config/backend_config.go b/core/config/backend_config.go index 32e10a174367..162120adc38a 100644 --- a/core/config/backend_config.go +++ b/core/config/backend_config.go @@ -185,7 +185,12 @@ func (c *BackendConfig) ShouldCallSpecificFunction() bool { } func (c *BackendConfig) FunctionToCall() string { - return c.functionCallNameString + if c.functionCallNameString != "" && + c.functionCallString != "none" && c.functionCallString != "auto" { + return c.functionCallNameString + } + + return c.functionCallString } func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {