Browse Source

stackdriver: use gce variable

Erik Sundell 7 years ago
parent
commit
8b4fff8b87
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tsdb/stackdriver/test_datasource_query.go

+ 1 - 1
pkg/tsdb/stackdriver/test_datasource_query.go

@@ -21,7 +21,7 @@ func (e *StackdriverExecutor) executeTestDataSource(ctx context.Context, tsdbQue
 	}
 
 	authenticationType := e.dsInfo.JsonData.Get("authenticationType").MustString("jwt")
-	if authenticationType == "gce" {
+	if authenticationType == gceAuthentication {
 		defaultProject, err := e.getDefaultProject(ctx)
 		if err != nil {
 			return nil, fmt.Errorf("Failed to retrieve default project from GCE metadata server. error: %v", err)