Merge pull request #2163 from xianlubird/feature/rescheduler

fix issue #2162 add removeDuplicateContainers behaviour for every node when it's added.
This commit is contained in:
Dongluo Chen 2016-07-11 16:58:30 -07:00 committed by GitHub
commit 5a6da69f6c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func (w *Watchdog) Handle(e *Event) error {
}
switch e.Status {
case "engine_reconnect":
case "engine_connect", "engine_reconnect":
go w.removeDuplicateContainers(e.Engine)
case "engine_disconnect":
go w.rescheduleContainers(e.Engine)