version mismatch catch

This commit is contained in:
ari committed 2026-11-01 14:34:23 -05:00
1 parent 3ba96528bb
commit a90653260a
11 files changed
+181 -34

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ var ErrMaxedOut = errors.New("no node has room for this container")
type NodeView struct {
Name string
Version string
Usable model.Size
Used model.Size
Drives []storage.DriveReport
@@ -91,7 +92,7 @@ func ChoosePlacement(views []NodeView, want model.Size, storageMB int64) (node,
}
func BuildView(info node.NodeInfo, owners []model.Owner, defaultSize model.Size) NodeView {
v := NodeView{Name: info.Name, Usable: info.Usable}
v := NodeView{Name: info.Name, Version: info.Version, Usable: info.Usable}
byMachine := map[string]*model.Owner{}
for i := range owners {