Merge pull request #24125 from vdemeester/24117-node-task-filter
Fix --filter=desired_state behaviour
This commit is contained in:
commit
9d18fda08d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func runTasks(dockerCli *client.DockerCli, opts tasksOptions) error {
|
|||
|
||||
filter := opts.filter.Value()
|
||||
filter.Add("node", node.ID)
|
||||
if !opts.all {
|
||||
if !opts.all && !filter.Include("desired_state") {
|
||||
filter.Add("desired_state", string(swarm.TaskStateRunning))
|
||||
filter.Add("desired_state", string(swarm.TaskStateAccepted))
|
||||
|
||||
|
|
Loading…
Reference in a new issue