Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: remove ineffectual assignments

rcourtmane1b9c133c35b
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 91548a13e6..bfc9b4d560 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 8bcc95f979..1553b582cb 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
}