Sfoglia il codice sorgente

Merge pull request #3172 from utkarshcmu/aws-bug

Test specified AWS Region and not hardcoded us-east-1
Torkel Ödegaard 10 anni fa
parent
commit
ecb1552c10
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      public/app/plugins/datasource/cloudwatch/datasource.js

+ 1 - 1
public/app/plugins/datasource/cloudwatch/datasource.js

@@ -216,7 +216,7 @@ function (angular, _) {
 
 
     CloudWatchDatasource.prototype.testDatasource = function() {
     CloudWatchDatasource.prototype.testDatasource = function() {
       /* use billing metrics for test */
       /* use billing metrics for test */
-      var region = 'us-east-1';
+      var region = this.defaultRegion;
       var namespace = 'AWS/Billing';
       var namespace = 'AWS/Billing';
       var metricName = 'EstimatedCharges';
       var metricName = 'EstimatedCharges';
       var dimensions = {};
       var dimensions = {};