mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7362 from crosbymichael/fix-get-image-json
Fix get image json
This commit is contained in:
commit
3490042836
1 changed files with 3 additions and 3 deletions
|
@ -238,10 +238,10 @@ func getImagesJSON(eng *engine.Engine, version version.Version, w http.ResponseW
|
|||
outsLegacy := engine.NewTable("Created", 0)
|
||||
for _, out := range outs.Data {
|
||||
for _, repoTag := range out.GetList("RepoTags") {
|
||||
parts := strings.Split(repoTag, ":")
|
||||
repo, tag := parsers.ParseRepositoryTag(repoTag)
|
||||
outLegacy := &engine.Env{}
|
||||
outLegacy.Set("Repository", parts[0])
|
||||
outLegacy.Set("Tag", parts[1])
|
||||
outLegacy.Set("Repository", repo)
|
||||
outLegacy.SetJson("Tag", tag)
|
||||
outLegacy.Set("Id", out.Get("Id"))
|
||||
outLegacy.SetInt64("Created", out.GetInt64("Created"))
|
||||
outLegacy.SetInt64("Size", out.GetInt64("Size"))
|
||||
|
|
Loading…
Add table
Reference in a new issue