Skip to content

Commit

Permalink
fix(functions): respect when selected bfrom string
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Apr 1, 2024
1 parent ebb1fce commit 9e268ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/config/backend_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9e268ee

Please sign in to comment.