Skip to content

Commit

Permalink
Fix: Return if DSC already exists (opendatahub-io#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire authored Jul 12, 2024
1 parent 447f5ad commit 9d2cc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func CreateWithRetry(ctx context.Context, cli client.Client, obj client.Object,
return wait.PollUntilContextTimeout(ctx, interval, timeout, true, func(ctx context.Context) (bool, error) {
err := cli.Create(ctx, obj)
if err != nil {
return false, nil //nolint:nilerr
return false, err
}
return true, nil
})
Expand Down

0 comments on commit 9d2cc7e

Please sign in to comment.