nukosuke / terraform-provider-zendesk

Terraform Zendesk provider
https://registry.terraform.io/providers/nukosuke/zendesk/latest/docs
MIT License
26 stars 18 forks source link

Use context aware version of function for CRUD #225

Closed nukosuke closed 2 years ago

nukosuke commented 2 years ago

https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide#more-support-for-context-context

https://github.com/nukosuke/terraform-provider-zendesk/blob/0dc7db52f37368e0f0eb9abfbc7f4fad1add0626/zendesk/resource_zendesk_group.go#L14-L17

should be

 CreateContext: func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { 
    zd := meta.(*client.Client) 
    return createGroup(ctx, d, zd) 
 },