Skip to content

Commit bda53fb

Browse files
authored
make health check compatible (#62)
1 parent 2f8817a commit bda53fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (ds *sqldatasource) handleQuery(ctx context.Context, req backend.DataQuery,
226226

227227
// CheckHealth pings the connected SQL database
228228
func (ds *sqldatasource) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error) {
229-
key := defaultKey(req.PluginContext.DataSourceInstanceSettings.UID)
229+
key := defaultKey(getDatasourceUID(*req.PluginContext.DataSourceInstanceSettings))
230230
dbConn, ok := ds.getDBConnection(key)
231231
if !ok {
232232
return nil, MissingDBConnection

0 commit comments

Comments
 (0)