mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 11:46:28 +00:00
fix: PBS storage incorrectly showing on wrong nodes (addresses #403)
PBS storage was being marked as shared when it shouldn't be. Each PBS namespace is node-specific even when connecting to the same PBS server. Now PBS storage correctly shows under its respective node instead of all being assigned to the last node.
This commit is contained in:
@@ -1991,7 +1991,8 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,
|
||||
clusterConfig, hasClusterConfig := clusterStorageMap[storage.Storage]
|
||||
|
||||
// Determine if shared
|
||||
shared := hasClusterConfig && clusterConfig.Shared == 1
|
||||
// PBS storage is never shared - each node has its own namespace even if connecting to the same PBS
|
||||
shared := hasClusterConfig && clusterConfig.Shared == 1 && storage.Type != "pbs"
|
||||
|
||||
// For shared storage, only include it once
|
||||
storageKey := storage.Storage
|
||||
|
||||
Reference in New Issue
Block a user