@@ -432,16 +432,13 @@ func (n *NodeAbstractResourceInstance) planDestroy(ctx EvalContext, currentState
432432 // Allow the provider to check the destroy plan, and insert any
433433 // necessary private data.
434434 resp = provider .PlanResourceChange (providers.PlanResourceChangeRequest {
435- TypeName : n .Addr .Resource .Resource .Type ,
436- Config : nullVal ,
437- PriorState : unmarkedPriorVal ,
438- ProposedNewState : nullVal ,
439- PriorPrivate : currentState .Private ,
440- ProviderMeta : metaConfigVal ,
441- ClientCapabilities : providers.ClientCapabilities {
442- DeferralAllowed : deferralAllowed ,
443- WriteOnlyAttributesAllowed : true ,
444- },
435+ TypeName : n .Addr .Resource .Resource .Type ,
436+ Config : nullVal ,
437+ PriorState : unmarkedPriorVal ,
438+ ProposedNewState : nullVal ,
439+ PriorPrivate : currentState .Private ,
440+ ProviderMeta : metaConfigVal ,
441+ ClientCapabilities : ctx .ClientCapabilities (),
445442 })
446443 deferred = resp .Deferred
447444
@@ -635,14 +632,11 @@ func (n *NodeAbstractResourceInstance) refresh(ctx EvalContext, deposedKey state
635632 }
636633 } else {
637634 resp = provider .ReadResource (providers.ReadResourceRequest {
638- TypeName : n .Addr .Resource .Resource .Type ,
639- PriorState : priorVal ,
640- Private : state .Private ,
641- ProviderMeta : metaConfigVal ,
642- ClientCapabilities : providers.ClientCapabilities {
643- DeferralAllowed : deferralAllowed ,
644- WriteOnlyAttributesAllowed : true ,
645- },
635+ TypeName : n .Addr .Resource .Resource .Type ,
636+ PriorState : priorVal ,
637+ Private : state .Private ,
638+ ProviderMeta : metaConfigVal ,
639+ ClientCapabilities : ctx .ClientCapabilities (),
646640 })
647641
648642 // If we don't support deferrals, but the provider reports a deferral and does not
@@ -863,11 +857,9 @@ func (n *NodeAbstractResourceInstance) plan(
863857 unmarkedConfigVal , _ := origConfigVal .UnmarkDeep ()
864858 validateResp := provider .ValidateResourceConfig (
865859 providers.ValidateResourceConfigRequest {
866- TypeName : n .Addr .Resource .Resource .Type ,
867- Config : unmarkedConfigVal ,
868- ClientCapabilities : providers.ClientCapabilities {
869- WriteOnlyAttributesAllowed : true ,
870- },
860+ TypeName : n .Addr .Resource .Resource .Type ,
861+ Config : unmarkedConfigVal ,
862+ ClientCapabilities : ctx .ClientCapabilities (),
871863 },
872864 )
873865 diags = diags .Append (validateResp .Diagnostics .InConfigBody (config .Config , n .Addr .String ()))
@@ -926,16 +918,13 @@ func (n *NodeAbstractResourceInstance) plan(
926918 }
927919 } else {
928920 resp = provider .PlanResourceChange (providers.PlanResourceChangeRequest {
929- TypeName : n .Addr .Resource .Resource .Type ,
930- Config : unmarkedConfigVal ,
931- PriorState : unmarkedPriorVal ,
932- ProposedNewState : proposedNewVal ,
933- PriorPrivate : priorPrivate ,
934- ProviderMeta : metaConfigVal ,
935- ClientCapabilities : providers.ClientCapabilities {
936- DeferralAllowed : deferralAllowed ,
937- WriteOnlyAttributesAllowed : true ,
938- },
921+ TypeName : n .Addr .Resource .Resource .Type ,
922+ Config : unmarkedConfigVal ,
923+ PriorState : unmarkedPriorVal ,
924+ ProposedNewState : proposedNewVal ,
925+ PriorPrivate : priorPrivate ,
926+ ProviderMeta : metaConfigVal ,
927+ ClientCapabilities : ctx .ClientCapabilities (),
939928 })
940929 // If we don't support deferrals, but the provider reports a deferral and does not
941930 // emit any error level diagnostics, we should emit an error.
@@ -1100,16 +1089,13 @@ func (n *NodeAbstractResourceInstance) plan(
11001089 }
11011090 } else {
11021091 resp = provider .PlanResourceChange (providers.PlanResourceChangeRequest {
1103- TypeName : n .Addr .Resource .Resource .Type ,
1104- Config : unmarkedConfigVal ,
1105- PriorState : nullPriorVal ,
1106- ProposedNewState : proposedNewVal ,
1107- PriorPrivate : plannedPrivate ,
1108- ProviderMeta : metaConfigVal ,
1109- ClientCapabilities : providers.ClientCapabilities {
1110- DeferralAllowed : deferralAllowed ,
1111- WriteOnlyAttributesAllowed : true ,
1112- },
1092+ TypeName : n .Addr .Resource .Resource .Type ,
1093+ Config : unmarkedConfigVal ,
1094+ PriorState : nullPriorVal ,
1095+ ProposedNewState : proposedNewVal ,
1096+ PriorPrivate : plannedPrivate ,
1097+ ProviderMeta : metaConfigVal ,
1098+ ClientCapabilities : ctx .ClientCapabilities (),
11131099 })
11141100
11151101 // If we don't support deferrals, but the provider reports a deferral and does not
@@ -1567,13 +1553,10 @@ func (n *NodeAbstractResourceInstance) readDataSource(ctx EvalContext, configVal
15671553 }
15681554 } else {
15691555 resp = provider .ReadDataSource (providers.ReadDataSourceRequest {
1570- TypeName : n .Addr .ContainingResource ().Resource .Type ,
1571- Config : configVal ,
1572- ProviderMeta : metaConfigVal ,
1573- ClientCapabilities : providers.ClientCapabilities {
1574- DeferralAllowed : deferralAllowed ,
1575- WriteOnlyAttributesAllowed : true ,
1576- },
1556+ TypeName : n .Addr .ContainingResource ().Resource .Type ,
1557+ Config : configVal ,
1558+ ProviderMeta : metaConfigVal ,
1559+ ClientCapabilities : ctx .ClientCapabilities (),
15771560 })
15781561
15791562 // If we don't support deferrals, but the provider reports a deferral and does not
0 commit comments