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.

Refuse a seeded disk slot mapping when the disk was replaced (#2667)

rcourtman75263ea589c9
diff --cc internal/unifiedresources/registry.go
index efabca099f,12eed901a2..a799e8182f
--- a/internal/unifiedresources/registry.go
+++ b/internal/unifiedresources/registry.go
@@@ -2974,10 -2944,10 +2982,13 @@@ func (rr *ResourceRegistry) ingestRecor
}
resource.ID = rr.chooseNewID(resource.Type, identity, source, sourceID)
+ if resource.Type == ResourceTypePhysicalDisk {
+ resource.ID = rr.physicalDiskIDForMachineLocked(resource.ID, candidateID, &resource, source, onlyMissing)
+ }
normalizeResourceRelationships(&resource)
+ if resource.ID == refusedDiskID {
+ resource.ID = candidateID
+ }
if existing := rr.resources[resource.ID]; existing != nil {
if onlyMissing {
return ""