Closed alexashley closed 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.
404
Example: https://github.com/alexashley/terraform-provider-kong/blob/b2fc00fdb095060dfc0e07da6ac8200c8253d8c6/kong/provider/resource_kong_plugin.go#L77-L80
Addressed in https://github.com/alexashley/terraform-provider-kong/commit/f40f5420d4867d17ce40e5c41b877b475f460c1d
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