Skip to content

Commit

Permalink
Introduce DELETED check (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hoppe <[email protected]>
  • Loading branch information
roberth1988 and Robert Hoppe authored Aug 9, 2024
1 parent da7d4e8 commit bd79c76
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/services/postgres-flex/v1.0/instance/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ func (DeleteResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, p
return nil, true, nil
}

// new soft-deletion
if res.JSON200 != nil && res.JSON200.Item.Status != nil && strings.ToUpper(*res.JSON200.Item.Status) != "DELETED" {
return nil, true, nil
}

return nil, false, err
}

// new soft-deletion
if res.JSON200 != nil && res.JSON200.Item.Status != nil && strings.ToUpper(*res.JSON200.Item.Status) != "DELETED" {
return nil, true, nil
}

return nil, false, nil
})
}

0 comments on commit bd79c76

Please sign in to comment.