Skip to content

Commit

Permalink
chore: fix multi-cluster client judgment condition (#7166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming authored Apr 25, 2024
1 parent bd3e0b3 commit 6f6939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/multicluster/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func allOf(mctx mcontext, ctx context.Context, obj client.Object, request func(c

func anyOf(mctx mcontext, ctx context.Context, obj client.Object, request func(contextCli, client.Object) error, opts any) error {
o := hasClientOption(opts)
if o == nil && !o.multiCheck {
if o == nil || !o.multiCheck {
return anyOf_(mctx, ctx, obj, request, opts)
}
return anyOfWithMultiCheck(mctx, ctx, obj, request, opts)
Expand Down

0 comments on commit 6f6939d

Please sign in to comment.