1
0
Fork 0

Mesos: Use slave.PID.Host as task SlaveIP.

This commit is contained in:
Nimi Wariboko Jr 2017-12-20 03:12:03 -08:00 committed by Traefiker
parent cd1b3904da
commit 3c7c6c4d9f
2 changed files with 5 additions and 1 deletions

View file

@ -408,7 +408,7 @@ func (p *Provider) taskRecords(sj state.State) []state.Task {
for _, task := range f.Tasks {
for _, slave := range sj.Slaves {
if task.SlaveID == slave.ID {
task.SlaveIP = slave.Hostname
task.SlaveIP = slave.PID.Host
}
}