mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
stackdriver: use gce variable
This commit is contained in:
parent
4a51d05477
commit
8b4fff8b87
@ -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…
Reference in New Issue
Block a user