alexashley / terraform-provider-kong

A Terraform provider for the Kong API gateway https://alexashley.github.io/terraform-provider-kong/
6 stars 2 forks source link

More intelligent error handling for reads #12

Closed alexashley closed 6 years ago

alexashley commented 6 years ago

Right now any failure on a read tells Terraform to "untrack" the resource (in case it was deleted manually). This needs to be more intelligent, i.e., it should actually check for a 404 from the api.

Example: https://github.com/alexashley/terraform-provider-kong/blob/b2fc00fdb095060dfc0e07da6ac8200c8253d8c6/kong/provider/resource_kong_plugin.go#L77-L80

alexashley commented 6 years ago

Addressed in https://github.com/alexashley/terraform-provider-kong/commit/f40f5420d4867d17ce40e5c41b877b475f460c1d