mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-02 02:57:28 +01:00
Logging when no image is found
This commit is contained in:
@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
|
||||
|
||||
images := c.listContainerImage()
|
||||
if len(images) == 0 {
|
||||
log.Warn().Msg("No image found")
|
||||
return []model.Job{}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
|
||||
|
||||
images := c.listFileImage()
|
||||
if len(images) == 0 {
|
||||
log.Warn().Msg("No image found")
|
||||
return []model.Job{}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
|
||||
|
||||
images := c.listServiceImage()
|
||||
if len(images) == 0 {
|
||||
log.Warn().Msg("No image found")
|
||||
return []model.Job{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user