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(proxmox): add GetClusterOptions to ClusterClient for tag colour fetch

rcourtman3a02dd171b0a
diff --git a/pkg/proxmox/cluster_client.go b/pkg/proxmox/cluster_client.go
index 5d8ad6013c..c7cd19cf2a 100644
--- a/pkg/proxmox/cluster_client.go
+++ b/pkg/proxmox/cluster_client.go
@@ -1444,6 +1444,20 @@ func (cc *ClusterClient) IsQuorate(ctx context.Context) (bool, error) {
return true, nil
}
+// GetClusterOptions fetches datacenter options (e.g. tag colour map) via the first healthy node.
+func (cc *ClusterClient) GetClusterOptions(ctx context.Context) (*ClusterOptions, error) {
+ var result *ClusterOptions
+ err := cc.executeWithFailover(ctx, func(client *Client) error {
+ opts, err := client.GetClusterOptions(ctx)
+ if err != nil {
+ return err
+ }
+ result = opts
+ return nil
+ })
+ return result, err
+}
+
// isAuthError checks if an error is an authentication error
func isAuthError(err error) bool {
if err == nil {