Skip to content

Commit 3a3e409

Browse files
authored
add and set list resource configure data (#1202)
1 parent e3cf75a commit 3a3e409

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

internal/fwserver/server_configureprovider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ func (s *Server) ConfigureProvider(ctx context.Context, req *provider.ConfigureR
3939
s.ResourceConfigureData = resp.ResourceData
4040
s.EphemeralResourceConfigureData = resp.EphemeralResourceData
4141
s.ActionConfigureData = resp.ActionData
42+
s.ListResourceConfigureData = resp.ListResourceData
4243
}

provider/configure.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ type ConfigureResponse struct {
7272
// Action type that implements the Configure method.
7373
ActionData any
7474

75+
// ListResourceData is provider-defined data, clients, etc. that is
76+
// passed to [action.ConfigureRequest.ProviderData] for each
77+
// Action type that implements the Configure method.
78+
ListResourceData any
79+
7580
// Deferred indicates that Terraform should automatically defer
7681
// all resources and data sources for this provider.
7782
//

0 commit comments

Comments
 (0)