Merge pull request #97 from andrewhsu/fix-progress

[17.06] progress: Show progress of replicated tasks before they are assigned
This commit is contained in:
Andrew Hsu
2017-07-11 15:56:39 -07:00
committed by GitHub
@@ -275,7 +275,11 @@ func (u *replicatedProgressUpdater) update(service swarm.Service, tasks []swarm.
continue
}
}
if _, nodeActive := activeNodes[task.NodeID]; nodeActive {
if task.NodeID != "" {
if _, nodeActive := activeNodes[task.NodeID]; nodeActive {
tasksBySlot[task.Slot] = task
}
} else {
tasksBySlot[task.Slot] = task
}
}