Skip to content

Commit

Permalink
chore: remove unused code for sync deprovision
Browse files Browse the repository at this point in the history
We had code to handle a sync deprovision, but the CSB cannot do a sync deprovision, so it's code that could never be run.
  • Loading branch information
blgm committed Oct 1, 2024
1 parent d1a7c75 commit 78abfc1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions brokerapi/broker/deprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ func (broker *ServiceBroker) Deprovision(ctx context.Context, instanceID string,
return domain.DeprovisionServiceSpec{}, err
}

if operationID == nil {
// If this is a synchronous operation, then immediately remove the service instance data from the database
if err := broker.removeServiceInstanceData(ctx, instanceID, serviceProvider); err != nil {
return domain.DeprovisionServiceSpec{}, err
}

return domain.DeprovisionServiceSpec{}, nil
}

response := domain.DeprovisionServiceSpec{
IsAsync: true,
OperationData: *operationID,
Expand Down

0 comments on commit 78abfc1

Please sign in to comment.