Skip to content

Commit

Permalink
Add a comment calling out intentional design of replacing configured …
Browse files Browse the repository at this point in the history
…values with `Unknown`
  • Loading branch information
SBGoods committed May 23, 2024
1 parent 31f33f8 commit a05621a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/fwserver/server_readdatasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func (s *Server) ReadDataSource(ctx context.Context, req *ReadDataSourceRequest,
logging.KeyDeferredReason: s.deferred.Reason.String(),
},
)
// Send an unknown value for the data source
// Send an unknown value for the data source. This will replace any configured values
// for ease of implementation as Terraform Core currently does not use these values for
// deferred actions, but this design could change in the future.
resp.State = &tfsdk.State{
Raw: tftypes.NewValue(req.DataSourceSchema.Type().TerraformType(ctx), tftypes.UnknownValue),
Schema: req.DataSourceSchema,
Expand Down

0 comments on commit a05621a

Please sign in to comment.