hashicorp / terraform-provider-dyn

Terraform Dyn provider. Please note: 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
7 stars 16 forks source link

terraform-provider-dyn fails to track state changed outside terraform #44

Closed atecce closed 4 years ago

atecce commented 5 years ago

I've noticed that if you delete an A record from the console (which was created with terraform apply on v0.11.14) and run a terraform plan, the provider does not seem to refresh the change outside the system.

I was going to take a look at the schema.ReadFunc that implements this, but is this a known issue?

atecce commented 5 years ago

https://github.com/terraform-providers/terraform-provider-dyn/blob/00f4d8f9b1c7234aeb7c6f37e7dbe0dbff1a4ac0/dyn/resource_dyn_record.go#L18

https://github.com/terraform-providers/terraform-provider-dyn/blob/00f4d8f9b1c7234aeb7c6f37e7dbe0dbff1a4ac0/dyn/resource_dyn_record.go#L126

https://github.com/terraform-providers/terraform-provider-dyn/blob/00f4d8f9b1c7234aeb7c6f37e7dbe0dbff1a4ac0/vendor/github.com/nesv/go-dynect/dynect/convenient_client.go#L107

https://github.com/terraform-providers/terraform-provider-dyn/blob/00f4d8f9b1c7234aeb7c6f37e7dbe0dbff1a4ac0/vendor/github.com/nesv/go-dynect/dynect/convenient_client.go#L110

https://github.com/terraform-providers/terraform-provider-dyn/blob/00f4d8f9b1c7234aeb7c6f37e7dbe0dbff1a4ac0/vendor/github.com/nesv/go-dynect/dynect/client.go#L118

seems to me that the Record here gets passed as responseData, and not requestData

atecce commented 4 years ago

bump