Include provider in notifications

This commit is contained in:
CrazyMax
2019-12-14 17:13:32 +01:00
parent e7626a94ed
commit c60fe06894
11 changed files with 19 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
package swarm
import (
"fmt"
"github.com/crazy-max/diun/internal/model"
"github.com/crazy-max/diun/internal/provider"
"github.com/rs/zerolog/log"
@@ -30,8 +32,7 @@ func (c *Client) ListJob() []model.Job {
for _, elt := range c.elts {
for _, img := range c.listServiceImage(elt) {
list = append(list, model.Job{
Provider: "swarm",
ID: elt.ID,
Provider: fmt.Sprintf("swarm-%s", elt.ID),
Image: img,
})
}