Skip to content

Commit 27c389e

Browse files
Kbayeroylladaosmonteromjabascal10
authored
Bugfix/10.8.0/macos (#1176)
* feat: Improve installer to add RHELD support * fix: Update windows ARM collector * wip * feat: Add SELinux configuration for RedHat systems * fix interface agent problem * add bad gateway page * complete macos agent * feat(module-integration): add SOC AI model selection field * feat(module-integration): add SOC AI model selection field * feat(module-integration): add SOC AI model selection field * feat(module-integration): update MacOS guide * fix custom bad gateway page creation * not contains operator grammar(Jose Angel) * fix(agent-details): show correct agent version and format OS version * Update and publish SOC-AI models * Update UTMStack Version * update service agent problem * fix nil pointer * Add debug logs and avoid nil pointer in long term --------- Co-authored-by: Yadian Llada Lopez <[email protected]> Co-authored-by: Osmany Montero <[email protected]> Co-authored-by: Manuel Abascal <[email protected]>
1 parent 7cc99e0 commit 27c389e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

soc-ai/configurations/config.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ func (c *GPTConfig) UpdateGPTConfigurations() {
3535
panelServ := GetPanelServiceName()
3636
client := UTMStackConfigurationClient.NewUTMClient(intKey, panelServ)
3737

38+
utils.Logger.Info("Starting to update GPT configurations...")
39+
3840
for {
3941
if err := utils.ConnectionChecker(GPT_API_ENDPOINT); err != nil {
4042
utils.Logger.ErrorF("Failed to establish internet connection: %v", err)
@@ -46,10 +48,15 @@ func (c *GPTConfig) UpdateGPTConfigurations() {
4648
time.Sleep(TIME_FOR_GET_CONFIG * time.Second)
4749
continue
4850
}
51+
if tempModuleConfig == nil {
52+
utils.Logger.LogF(100, "Got nil config from server")
53+
time.Sleep(TIME_FOR_GET_CONFIG * time.Second)
54+
continue
55+
}
4956

5057
c.ModuleActive = tempModuleConfig.ModuleActive
5158

52-
if c.ModuleActive && tempModuleConfig != nil && len(tempModuleConfig.ConfigurationGroups) > 0 {
59+
if c.ModuleActive && len(tempModuleConfig.ConfigurationGroups) > 0 {
5360
for _, config := range tempModuleConfig.ConfigurationGroups[0].Configurations {
5461
switch config.ConfKey {
5562
case "utmstack.socai.key":

0 commit comments

Comments
 (0)