0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-03-17 21:02:39 +00:00

Check Nomad group meta tags

This was intended originally and included in the documentation, but missed in
the implementation.
This commit is contained in:
Ian Fijolek 2023-01-11 10:01:14 -08:00
parent 463130b67f
commit e7051f2e38

View file

@ -66,6 +66,8 @@ func (c *Client) listTaskImages() []model.Image {
for _, taskGroup := range jobInfo.TaskGroups {
// Get task group service labels
groupLabels := map[string]string{}
groupLabels = updateMap(groupLabels, taskGroup.Meta)
for _, service := range taskGroup.Services {
groupLabels = updateMap(groupLabels, parseServiceTags(service.Tags))
}