From 8b4fff8b87cd1f587f17267735da52be7b41fe5b Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 10 Oct 2018 13:40:17 +0200 Subject: [PATCH] stackdriver: use gce variable --- pkg/tsdb/stackdriver/test_datasource_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/stackdriver/test_datasource_query.go b/pkg/tsdb/stackdriver/test_datasource_query.go index 7ed6cbb061d..5a495754bd8 100644 --- a/pkg/tsdb/stackdriver/test_datasource_query.go +++ b/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)