Check whether Mesos task labels are available
This commit is contained in:
parent
a058406b24
commit
25dc521186
@ -113,9 +113,11 @@ func (s *state) fetchLabelsFromTask(exID string, labels map[string]string) error
|
||||
}
|
||||
}
|
||||
|
||||
if t.Labels != nil {
|
||||
for _, l := range t.Labels.Labels {
|
||||
labels[l.Key] = *l.Value
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user