We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 304e956 commit 4d26712Copy full SHA for 4d26712
plugins/modules-config/validations/socai.go
@@ -1,7 +1,9 @@
1
package validations
2
+
3
import (
4
"encoding/json"
5
"fmt"
6
+ "strings"
7
8
"github.com/utmstack/UTMStack/plugins/modules-config/config"
9
"github.com/utmstack/UTMStack/plugins/modules-config/validations/socai"
@@ -26,6 +28,7 @@ func parseSOCAIConfig(cfg *config.ModuleGroup) socai.SOCAIConfig {
26
28
}
27
29
30
for _, cnf := range cfg.ModuleGroupConfigurations {
31
+ cnf.ConfValue=strings.Trim(cnf.ConfValue," ")
32
switch cnf.ConfKey {
33
case "utmstack.socai.autoAnalyze":
34
socai.AutoAnalyze = cnf.ConfValue == "true"
0 commit comments