nomad: sort regions before returning

This commit is contained in:
Ryan Uber 2015-11-24 13:15:01 -08:00
parent 617c64ee20
commit d983f266b0
1 changed files with 2 additions and 0 deletions

View File

@ -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
}