diff --git a/pkg/services/postgres-flex/v1.0/instance/wait.go b/pkg/services/postgres-flex/v1.0/instance/wait.go index 26b692d..91f497d 100644 --- a/pkg/services/postgres-flex/v1.0/instance/wait.go +++ b/pkg/services/postgres-flex/v1.0/instance/wait.go @@ -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 }) }