1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 06:19:41 +02:00

fix(endpoints): remove global map to avoid panic writes EE-3838 (#7404)

This commit is contained in:
andres-portainer 2022-08-03 12:18:33 -03:00 committed by GitHub
parent 628f822025
commit 20a66fb10f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -39,8 +39,8 @@ func (e EndpointsByGroup) Less(i, j int) bool {
return false
}
groupA := endpointGroupNames[e.endpoints[i].GroupID]
groupB := endpointGroupNames[e.endpoints[j].GroupID]
groupA := e.endpointGroupNames[e.endpoints[i].GroupID]
groupB := e.endpointGroupNames[e.endpoints[j].GroupID]
return sortorder.NaturalLess(strings.ToLower(groupA), strings.ToLower(groupB))
}