Skip to content

Commit

Permalink
Introduce DELETED check
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Hoppe committed Aug 9, 2024
1 parent da7d4e8 commit ff19bab
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 ff19bab

Please sign in to comment.