diff options
author | Ondra Machacek <omachace@redhat.com> | 2021-10-20 18:45:56 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-11-12 11:08:25 -0500 |
commit | 3bd80ac9ae2ea512a5ce9140bedab742910d0513 (patch) | |
tree | 1b1aea3de4b1443ae687ecdb5a3ada4c19a4bf58 /pkg/domain/infra/tunnel/images.go | |
parent | a8332f69460f687d704cd804673b0ccca8fd5403 (diff) | |
download | podman-3bd80ac9ae2ea512a5ce9140bedab742910d0513.tar.gz podman-3bd80ac9ae2ea512a5ce9140bedab742910d0513.tar.bz2 podman-3bd80ac9ae2ea512a5ce9140bedab742910d0513.zip |
Handle HTTP 409 error messages properly for Pod actions
This PR fixes the case when the API return HTTP 409 response. Where the
API return the body format different then for other HTTP error codes.
Signed-off-by: Ondra Machacek <omachace@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/images.go')
-rw-r--r-- | pkg/domain/infra/tunnel/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go index 9a746d68c..ab2a93c75 100644 --- a/pkg/domain/infra/tunnel/images.go +++ b/pkg/domain/infra/tunnel/images.go @@ -188,7 +188,7 @@ func (ir *ImageEngine) Inspect(ctx context.Context, namesOrIDs []string, opts en for _, i := range namesOrIDs { r, err := images.GetImage(ir.ClientCtx, i, options) if err != nil { - errModel, ok := err.(errorhandling.ErrorModel) + errModel, ok := err.(*errorhandling.ErrorModel) if !ok { return nil, nil, err } |