mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
helper/schema: Resouce.Diff no longer ResourceProvider API compatible
The old comments said that this interface was API compatible with terraform.ResourceProvider's Diff method - with the addition of passing down meta to it, this is no longer the case. Not too sure if this is really a big deal - schema.Resource never fully implemented terraform.ResourceProvider, from what I can see, and the path from Provdier.Diff to Resource.Diff is still pretty clear. Just wanted to remove an outdated comment.
This commit is contained in:
parent
9625830980
commit
09e2109ff8
@ -216,8 +216,7 @@ func (r *Resource) Apply(
|
|||||||
return r.recordCurrentSchemaVersion(data.State()), err
|
return r.recordCurrentSchemaVersion(data.State()), err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Diff returns a diff of this resource and is API compatible with the
|
// Diff returns a diff of this resource.
|
||||||
// ResourceProvider interface.
|
|
||||||
func (r *Resource) Diff(
|
func (r *Resource) Diff(
|
||||||
s *terraform.InstanceState,
|
s *terraform.InstanceState,
|
||||||
c *terraform.ResourceConfig,
|
c *terraform.ResourceConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user