mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-25 06:49:28 +01:00
Include provider in notifications
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user