hashicorp / terraform-provider-bitbucket

This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
31 stars 106 forks source link

Handle missing hooks #24

Closed tprobinson closed 5 years ago

tprobinson commented 6 years ago

When deleting a hook outside of Terraform then running Terraform again, it blows up with messages like the following:

API Error: 404 2.0/repositories/owner/repoName/hooks/{uuid} repoName is not a valid hook

which makes the run fail.

Unfortunately I wasn't able to figure out a more rigorous method of checking the error returned, Go is not a strong language for me. Feel free to edit this.