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.

chore: cleanup proxmox IsAuthError and remove stray comment

rcourtman8276ae837ee8
diff --git a/internal/api/docker_metadata.go b/internal/api/docker_metadata.go
index 5b8c13d38d..579a819f9f 100644
--- a/internal/api/docker_metadata.go
+++ b/internal/api/docker_metadata.go
@@ -154,5 +154,3 @@ func (h *DockerMetadataHandler) HandleDeleteMetadata(w http.ResponseWriter, r *h
w.WriteHeader(http.StatusNoContent)
}
-
-// test comment
diff --git a/pkg/proxmox/cluster_client.go b/pkg/proxmox/cluster_client.go
index 78b258e600..052fc0287f 100644
--- a/pkg/proxmox/cluster_client.go
+++ b/pkg/proxmox/cluster_client.go
@@ -649,7 +649,7 @@ func (cc *ClusterClient) executeWithFailover(ctx context.Context, fn func(*Clien
}
// Check if it's an auth error - don't retry on auth errors
- if IsAuthError(err) {
+ if isAuthError(err) {
return err
}
@@ -1230,7 +1230,8 @@ func (cc *ClusterClient) GetDisks(ctx context.Context, node string) ([]Disk, err
return result, err
}
-func IsAuthError(err error) bool {
+// isAuthError checks if an error is an authentication error
+func isAuthError(err error) bool {
if err == nil {
return false
}