@@ -21,7 +21,7 @@ import (
2121// &schema.Resource{
2222// // ...
2323// CustomizeDiff: customdiff.All(
24- // customdiff.ValidateChange("size", func (old, new, meta interface{}) error {
24+ // customdiff.ValidateChange("size", func (ctx context.Context, old, new, meta interface{}) error {
2525// // If we are increasing "size" then the new value must be
2626// // a multiple of the old value.
2727// if new.(int) <= old.(int) {
@@ -32,12 +32,12 @@ import (
3232// }
3333// return nil
3434// }),
35- // customdiff.ForceNewIfChange("size", func (old, new, meta interface{}) bool {
35+ // customdiff.ForceNewIfChange("size", func (ctx context.Context, old, new, meta interface{}) bool {
3636// // "size" can only increase in-place, so we must create a new resource
3737// // if it is decreased.
3838// return new.(int) < old.(int)
3939// }),
40- // customdiff.ComputedIf("version_id", func (d *schema.ResourceDiff, meta interface{}) bool {
40+ // customdiff.ComputedIf("version_id", func (ctx context.Context, d *schema.ResourceDiff, meta interface{}) bool {
4141// // Any change to "content" causes a new "version_id" to be allocated.
4242// return d.HasChange("content")
4343// }),
0 commit comments