diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go index 91548a1..bfc9b4d 100644 --- a/internal/api/config_handlers.go +++ b/internal/api/config_handlers.go @@ -805,10 +805,10 @@ func (h *ConfigHandlers) GetAllNodesForAPI() []NodeResponse { containerSSHBlocked := isContainerSSHRestricted() // Add PVE nodes - for i, pve := range h.config.PVEInstances { + for i := range h.config.PVEInstances { // Refresh cluster metadata if we previously failed to detect endpoints h.maybeRefreshClusterInfo(&h.config.PVEInstances[i]) - pve = h.config.PVEInstances[i] + pve := h.config.PVEInstances[i] node := NodeResponse{ ID: generateNodeID("pve", i), Type: "pve", diff --git a/internal/dockeragent/swarm.go b/internal/dockeragent/swarm.go index 8bcc95f..1553b58 100644 --- a/internal/dockeragent/swarm.go +++ b/internal/dockeragent/swarm.go @@ -82,12 +82,6 @@ func (a *Agent) collectSwarmData(ctx context.Context, info systemtypes.Info, con includeTasks := a.cfg.IncludeTasks if info.Swarm.LocalNodeState != swarmtypes.LocalNodeStateActive { - if !includeServices { - includeServices = false - } - if !includeTasks { - includeTasks = false - } return nil, nil, swarmInfo }