zones: calculate Machine.ID on init
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
+2
-2
@@ -93,8 +93,8 @@ func (m *Zones) scanSort() error {
|
||||
|
||||
m.ForEachZone(func(z *Zone) bool {
|
||||
sort.SliceStable(z.Machines, func(i, j int) bool {
|
||||
id1 := z.Machines[i].ID()
|
||||
id2 := z.Machines[j].ID()
|
||||
id1 := z.Machines[i].ID
|
||||
id2 := z.Machines[j].ID
|
||||
return id1 < id2
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user