This commit is contained in:
parent
f927c7dd0b
commit
4c50648480
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,10 @@ func (provider *MarathonProvider) loadMarathonConfig() *Configuration {
|
|||
return false
|
||||
}
|
||||
application := getApplication(task, applications.Apps)
|
||||
if application == nil {
|
||||
log.Errorf("Unable to get marathon application from task %s", task.AppID)
|
||||
return false
|
||||
}
|
||||
_, err := strconv.Atoi(application.Labels["traefik.port"])
|
||||
if len(application.Ports) > 1 && err != nil {
|
||||
log.Debug("Filtering marathon task with more than 1 port and no traefik.port label", task.AppID)
|
||||
|
|
Loading…
Reference in a new issue