Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete happening twice on change with ForceNew #542

Closed
svend opened this issue Nov 4, 2014 · 1 comment
Closed

Delete happening twice on change with ForceNew #542

svend opened this issue Nov 4, 2014 · 1 comment

Comments

@svend
Copy link
Contributor

svend commented Nov 4, 2014

When I change a resource setting that uses ForceNew, delete happens twice. For example, when I change the name for the foo stingray_traffic_ip_group resource the resource is deleted, then another delete fails because the resource no longer exists.

$ terraform plan
-/+ stingray_traffic_ip_group.foo
name: "foo" => "foo-new" (forces new resource)

$ terraform apply
stingray_traffic_ip_group.foo: Refreshing state... (ID: foo)
stingray_traffic_ip_group.foo: Destroying...
stingray_traffic_ip_group.foo: Destruction complete
stingray_traffic_ip_group.foo: Modifying...
name: "foo" => "foo-new"
stingray_traffic_ip_group.foo: Error: DELETE https://localhost:9070/api/tm/3.0/config/active/traffic_ip_groups/foo: 404 resource.not_found Resource '/api/tm/3.0/config/active/traffic_ip_groups/foo' does not exist

The provider source is not on GitHub yet, but the resource code is here:

https://gist.github.com/svend/9299368667e086430c1b

@armon
Copy link
Member

armon commented Nov 19, 2014

Should be fixed by #578

@armon armon closed this as completed Nov 19, 2014
@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants