mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-28 04:38:48 +01:00
add tests for json template
This commit is contained in:
parent
be2302f059
commit
173357a07c
2 changed files with 121 additions and 3 deletions
|
|
@ -44,10 +44,10 @@ func marshalReports(reports []t.ContainerReport) []JSONMap {
|
|||
jsonReports := make([]JSONMap, len(reports))
|
||||
for i, report := range reports {
|
||||
jsonReports[i] = JSONMap{
|
||||
`id`: report.ID(),
|
||||
`id`: report.ID().ShortID(),
|
||||
`name`: report.Name(),
|
||||
`currentImageId`: report.CurrentImageID(),
|
||||
`latestImageId`: report.LatestImageID(),
|
||||
`currentImageId`: report.CurrentImageID().ShortID(),
|
||||
`latestImageId`: report.LatestImageID().ShortID(),
|
||||
`imageName`: report.ImageName(),
|
||||
`state`: report.State(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue