stackdriver: use gce variable

pull/13671/head
Erik Sundell 7 years ago
parent 4a51d05477
commit 8b4fff8b87
  1. 2
      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)

Loading…
Cancel
Save