Skip to content

Commit

Permalink
improve delete nic
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
outscale-mgo committed Nov 21, 2023
1 parent 5a06391 commit 1916f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outscale/resource_outscale_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1916f8e

Please sign in to comment.