Unverified Commit 48af7398 authored by Shea Levy's avatar Shea Levy Committed by Shea Levy

dockershim: Return Labels as Info in ImageStatus.

c6ddc749 added an Info field to ImageStatusResponse when Verbose is true. This makes the image's Labels available in that field, rather than unconditionally returning an empty map.
parent eff9f75f
...@@ -76,7 +76,11 @@ func (ds *dockerService) ImageStatus(_ context.Context, r *runtimeapi.ImageStatu ...@@ -76,7 +76,11 @@ func (ds *dockerService) ImageStatus(_ context.Context, r *runtimeapi.ImageStatu
return nil, err return nil, err
} }
return &runtimeapi.ImageStatusResponse{Image: imageStatus}, nil res := runtimeapi.ImageStatusResponse{Image: imageStatus}
if r.GetVerbose() {
res.Info = imageInspect.Config.Labels
}
return &res, nil
} }
// PullImage pulls an image with authentication config. // PullImage pulls an image with authentication config.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment