Fix Marathon backend

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-19 12:00:22 +02:00
parent 68da47b59a
commit 2a3a34a80c
No known key found for this signature in database
GPG key ID: D808B4C167352E59
2 changed files with 7 additions and 1 deletions

View file

@ -69,6 +69,7 @@ func (provider *Marathon) Provide(configurationChan chan<- types.ConfigMessage,
return err
}
pool.Go(func(stop chan bool) {
defer close(update)
for {
select {
case <-stop:
@ -86,6 +87,11 @@ func (provider *Marathon) Provide(configurationChan chan<- types.ConfigMessage,
}
})
}
configuration := provider.loadMarathonConfig()
configurationChan <- types.ConfigMessage{
ProviderName: "marathon",
Configuration: configuration,
}
return nil
}