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 delet.
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 nethertheless.

Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Nov 21, 2023
1 parent 5a06391 commit 21b4b4c
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 21b4b4c

Please sign in to comment.