Browse Source

don't merge hard coded region list

Mitsuhiro Tanda 7 năm trước cách đây
mục cha
commit
a417d6fa21
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/app/plugins/datasource/cloudwatch/config_ctrl.ts

+ 1 - 1
public/app/plugins/datasource/cloudwatch/config_ctrl.ts

@@ -75,7 +75,7 @@ export class CloudWatchConfigCtrl {
         return ds.getRegions();
       })
       .then(regions => {
-        this.regions = _.uniq(this.regions.concat(_.map(regions, 'value')));
+        this.regions = _.map(regions, 'value');
       }, err => {
         console.error('failed to call ec2:DescribeRegions, please check iam setting');
       });