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