diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-29 11:21:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 11:21:47 +0200 |
commit | 3e912f711b875b40709075e22be3f94e21e1639a (patch) | |
tree | 535357ded8c2482fabd8a9ccda5cdd70bb94867f /pkg/domain/infra/tunnel | |
parent | 62a4befe040944c7c4883fed6a70f691aadb440c (diff) | |
parent | 8700c2fd03c29fb898f93e71618d91e2470236f6 (diff) | |
download | podman-3e912f711b875b40709075e22be3f94e21e1639a.tar.gz podman-3e912f711b875b40709075e22be3f94e21e1639a.tar.bz2 podman-3e912f711b875b40709075e22be3f94e21e1639a.zip |
Merge pull request #6022 from vrothberg/enable-inspect-tests
enable inspect tests
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r-- | pkg/domain/infra/tunnel/images.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go index 66e4e6e3f..dcc5fc3e7 100644 --- a/pkg/domain/infra/tunnel/images.go +++ b/pkg/domain/infra/tunnel/images.go @@ -143,16 +143,16 @@ func (ir *ImageEngine) Untag(ctx context.Context, nameOrId string, tags []string return nil } -func (ir *ImageEngine) Inspect(_ context.Context, names []string, opts entities.InspectOptions) (*entities.ImageInspectReport, error) { - report := entities.ImageInspectReport{} - for _, id := range names { - r, err := images.GetImage(ir.ClientCxt, id, &opts.Size) +func (ir *ImageEngine) Inspect(ctx context.Context, namesOrIDs []string, opts entities.InspectOptions) ([]*entities.ImageInspectReport, error) { + reports := []*entities.ImageInspectReport{} + for _, i := range namesOrIDs { + r, err := images.GetImage(ir.ClientCxt, i, &opts.Size) if err != nil { - report.Errors[id] = err + return nil, err } - report.Images = append(report.Images, r) + reports = append(reports, r) } - return &report, nil + return reports, nil } func (ir *ImageEngine) Load(ctx context.Context, opts entities.ImageLoadOptions) (*entities.ImageLoadReport, error) { |