Explorar o código

stackdriver: use gce variable

Erik Sundell %!s(int64=7) %!d(string=hai) anos
pai
achega
8b4fff8b87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)