Skip to content

Commit

Permalink
Ensure QueryData passed to ConnectionKeyColumns value callback is pop…
Browse files Browse the repository at this point in the history
…ulated with ConnectionManager. Closes #797

(cherry picked from commit 95898be)
  • Loading branch information
kaidaguerre committed May 8, 2024
1 parent f25107e commit c3322c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugin/plugin_connection_key_columns.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package plugin
import (
"context"
typeHelpers "github.com/turbot/go-kit/types"
connection_manager "github.com/turbot/steampipe-plugin-sdk/v5/connection"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin/quals"
Expand Down Expand Up @@ -164,9 +165,11 @@ func (p *Plugin) getConnectionKeyColumnValue(ctx context.Context, connectionName
return nil, err
}
d := &QueryData{
Connection: p.ConnectionMap[connectionName].Connection,
ConnectionCache: connectionCache,
Connection: p.ConnectionMap[connectionName].Connection,
ConnectionCache: connectionCache,
ConnectionManager: connection_manager.NewManager(connectionCache),
}

h := &HydrateData{}
val, err := valueFunc(ctx, d, h)
if err != nil {
Expand Down

0 comments on commit c3322c5

Please sign in to comment.