diff --git a/pkg/services/postgres-flex/v1.0/instance/wait.go b/pkg/services/postgres-flex/v1.0/instance/wait.go index 91f497d..73ece6f 100644 --- a/pkg/services/postgres-flex/v1.0/instance/wait.go +++ b/pkg/services/postgres-flex/v1.0/instance/wait.go @@ -60,7 +60,7 @@ func (DeleteResponse) WaitHandler(ctx context.Context, c *ClientWithResponses, p } // new soft-deletion - if res.JSON200 != nil && res.JSON200.Item.Status != nil && strings.ToUpper(*res.JSON200.Item.Status) != "DELETED" { + if res.JSON200 != nil && res.JSON200.Item.Status != nil && strings.ToUpper(*res.JSON200.Item.Status) == "DELETED" { return nil, true, nil }