@@ -867,7 +867,7 @@ func (n *NodeAbstractResourceInstance) plan(
867867 validateResourceForbiddenEphemeralValues (ctx , origConfigVal , schema .Body ).InConfigBody (n .Config .Config , n .Addr .String ()),
868868 )
869869 var deprecationDiags tfdiags.Diagnostics
870- origConfigVal , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (origConfigVal , schema .Body , n .ModulePath ())
870+ origConfigVal , deprecationDiags = ctx .Deprecations ().ValidateConfig (origConfigVal , schema .Body , n .ModulePath ())
871871 diags = diags .Append (deprecationDiags .InConfigBody (n .Config .Config , n .Addr .String ()))
872872 if diags .HasErrors () {
873873 return nil , nil , deferred , keyData , diags
@@ -1775,7 +1775,7 @@ func (n *NodeAbstractResourceInstance) providerMetas(ctx EvalContext) (cty.Value
17751775 metaConfigVal , _ , configDiags = ctx .EvaluateBlock (m .Config , providerSchema .ProviderMeta .Body , nil , EvalDataForNoInstanceKey )
17761776 diags = diags .Append (configDiags )
17771777 var deprecationDiags tfdiags.Diagnostics
1778- metaConfigVal , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (metaConfigVal , providerSchema .ProviderMeta .Body , ctx .Path ().Module ())
1778+ metaConfigVal , deprecationDiags = ctx .Deprecations ().ValidateConfig (metaConfigVal , providerSchema .ProviderMeta .Body , ctx .Path ().Module ())
17791779 diags = diags .Append (deprecationDiags .InConfigBody (m .Config , n .Addr .String ()))
17801780 }
17811781 }
@@ -1855,7 +1855,7 @@ func (n *NodeAbstractResourceInstance) planDataSource(ctx EvalContext, checkRule
18551855 )
18561856
18571857 var deprecationDiags tfdiags.Diagnostics
1858- configVal , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (configVal , schema .Body , ctx .Path ().Module ())
1858+ configVal , deprecationDiags = ctx .Deprecations ().ValidateConfig (configVal , schema .Body , ctx .Path ().Module ())
18591859 diags = diags .Append (deprecationDiags .InConfigBody (n .Config .Config , n .Addr .String ()))
18601860
18611861 if diags .HasErrors () {
@@ -2196,7 +2196,7 @@ func (n *NodeAbstractResourceInstance) applyDataSource(ctx EvalContext, planned
21962196 }
21972197
21982198 var deprecationDiags tfdiags.Diagnostics
2199- configVal , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (configVal , schema .Body , n .ModulePath ())
2199+ configVal , deprecationDiags = ctx .Deprecations ().ValidateConfig (configVal , schema .Body , n .ModulePath ())
22002200 diags = diags .Append (deprecationDiags .InConfigBody (n .Config .Config , n .Addr .String ()))
22012201
22022202 if diags .HasErrors () {
@@ -2515,7 +2515,7 @@ func (n *NodeAbstractResourceInstance) evalProvisionerConfig(ctx EvalContext, bo
25152515 config , _ , configDiags := ctx .EvaluateBlock (body , schema , n .ResourceInstanceAddr ().Resource , keyData )
25162516 diags = diags .Append (configDiags )
25172517 var deprecationDiags tfdiags.Diagnostics
2518- config , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (config , schema , n .ModulePath ())
2518+ config , deprecationDiags = ctx .Deprecations ().ValidateConfig (config , schema , n .ModulePath ())
25192519 diags = diags .Append (deprecationDiags .InConfigBody (body , n .Addr .String ()))
25202520
25212521 return config , diags
@@ -2535,7 +2535,7 @@ func (n *NodeAbstractResourceInstance) evalDestroyProvisionerConfig(ctx EvalCont
25352535 config , evalDiags := evalScope .EvalSelfBlock (body , self , schema , keyData )
25362536 diags = diags .Append (evalDiags )
25372537 var deprecationDiags tfdiags.Diagnostics
2538- config , deprecationDiags = ctx .Deprecations ().ValidateAsConfig (config , schema , n .ModulePath ())
2538+ config , deprecationDiags = ctx .Deprecations ().ValidateConfig (config , schema , n .ModulePath ())
25392539 diags = diags .Append (deprecationDiags .InConfigBody (body , n .Addr .String ()))
25402540 return config , diags
25412541}
0 commit comments