Skip to content

Commit

Permalink
continue if unshare fails
Browse files Browse the repository at this point in the history
  • Loading branch information
carrala committed May 24, 2021
1 parent 642a01f commit f3222b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2338,6 +2338,7 @@ func (c *ToznySDKV3) UnshareSecretBeforeDelete(ctx context.Context, options Unsh
if err != nil {
msg := fmt.Errorf("UnshareSecretBeforeDelete: failed to remove secret %s from group %s. Err: %+v", secretID, group.GroupID, err)
processingErrors = append(processingErrors, msg)
continue
}
// If the group only contains the secret, delete the group
if numberRecordsInGroup == 1 && listGroupRecords.ResultList[0].Metadata.RecordID == secretID.String() {
Expand Down

0 comments on commit f3222b8

Please sign in to comment.