mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
nomad: sort regions before returning
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -624,6 +625,7 @@ func (s *Server) Regions() []string {
|
||||
for region, _ := range s.peers {
|
||||
regions = append(regions, region)
|
||||
}
|
||||
sort.Strings(regions)
|
||||
return regions
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user