From 1916f8e4da633a0e759bfdf4936fc11529555cee Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Mon, 20 Nov 2023 14:58:08 +0100 Subject: [PATCH] improve delete nic up to this patch, if the API was returning an empty array on ReadNics after a DeleteNic, the delete_nic operation on terraform was waiting for the end of the timeout to validate the delete. Not anymore. Note that this bug did happen on Ricochet, but was not hapenning on the API because the API was returning a nic either in deleting or deleted state. But it was still a bug nevertheless. Signed-off-by: Matthias Gatto --- outscale/resource_outscale_net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outscale/resource_outscale_net.go b/outscale/resource_outscale_net.go index 1ba48e041..cad6176f1 100644 --- a/outscale/resource_outscale_net.go +++ b/outscale/resource_outscale_net.go @@ -186,7 +186,7 @@ func resourceOutscaleOAPINetDelete(d *schema.ResourceData, meta interface{}) err state = nats[0].GetState() return resp, state, nil } - return nil, state, nil + return resp, state, nil }, Timeout: 8 * time.Minute, MinTimeout: 30 * time.Second,