mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Merge pull request #25189 from aaronlehmann/service-list-counter
service ls: Show tasks from nodes that are not down, not only "ready" nodes Upstream-commit: 246d3cdb9adcbcbbc2aa9ed5027228e8cc742299 Component: engine
This commit is contained in:
@@ -84,7 +84,7 @@ func runList(dockerCli *client.DockerCli, opts listOptions) error {
|
||||
func PrintNotQuiet(out io.Writer, services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) {
|
||||
activeNodes := make(map[string]struct{})
|
||||
for _, n := range nodes {
|
||||
if n.Status.State == swarm.NodeStateReady {
|
||||
if n.Status.State != swarm.NodeStateDown {
|
||||
activeNodes[n.ID] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user