Skip to content

Commit

Permalink
cluster: fix node filter on exec (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Aug 16, 2023
1 parent 600390f commit e450cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/manager/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (m *Manager) Exec(name string, opt ExecOptions, gOpt operator.Options) erro
return
}

if len(gOpt.Nodes) > 0 && (!filterNodes.Exist(inst.GetHost()) || !filterNodes.Exist(inst.GetManageHost())) {
if len(gOpt.Nodes) > 0 && (!filterNodes.Exist(inst.GetHost()) && !filterNodes.Exist(inst.GetManageHost())) {
return
}

Expand Down

0 comments on commit e450cb3

Please sign in to comment.