소스 검색

sort regions by alphabetical order

Mitsuhiro Tanda 10 년 전
부모
커밋
a7deca1df5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pkg/api/cloudwatch/metrics.go

+ 2 - 2
pkg/api/cloudwatch/metrics.go

@@ -69,8 +69,8 @@ func init() {
 // Please update the region list in public/app/plugins/datasource/cloudwatch/partials/config.html
 // Please update the region list in public/app/plugins/datasource/cloudwatch/partials/config.html
 func handleGetRegions(req *cwRequest, c *middleware.Context) {
 func handleGetRegions(req *cwRequest, c *middleware.Context) {
 	regions := []string{
 	regions := []string{
-		"us-east-1", "us-west-2", "us-west-1", "eu-west-1", "eu-central-1", "ap-southeast-1",
-		"ap-southeast-2", "ap-northeast-1", "sa-east-1", "cn-north-1",
+		"ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "cn-north-1",
+		"eu-central-1", "eu-west-1", "sa-east-1", "us-east-1", "us-west-1", "us-west-2",
 	}
 	}
 
 
 	result := []interface{}{}
 	result := []interface{}{}