Add retry for deleting repos
@@ -184,7 +184,7 @@ func mkRepoUpdate(unpack UnpackFunc, read schema.ReadContextFunc) schema.UpdateC
}
func deleteRepo(_ context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
- resp, err := m.(*resty.Client).R().Delete(repositoriesEndpoint + d.Id())
+ resp, err := m.(*resty.Client).R().AddRetryCondition(retryOnMergeError).Delete(repositoriesEndpoint + d.Id())
if err != nil && (resp != nil && (resp.StatusCode() == http.StatusBadRequest || resp.StatusCode() == http.StatusNotFound)) {
d.SetId("")
