Skip to content

Commit

Permalink
Merge pull request #82 from cloud-gov/bh-unbind-bug
Browse files Browse the repository at this point in the history
Allow unbinding when user is missing
  • Loading branch information
hursey013 authored Dec 17, 2024
2 parents 7d827ea + 0b7f82a commit 2a1a1b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ func (b *DeployerAccountBroker) Unbind(
case userAccountGUID:
user, err := b.uaaClient.GetUser(bindingID)
if err != nil {
if strings.Contains(err.Error(), "got 0") {
return nil
}
return err
}

Expand Down

0 comments on commit 2a1a1b8

Please sign in to comment.