summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/secrets.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-02 16:11:28 +0100
committerGitHub <noreply@github.com>2021-11-02 16:11:28 +0100
commit0d5aef47d3b5322d8d7d876a27ff06b5eb71c97a (patch)
tree48a221e026a4039d10fa7e509b91f9cc220f0874 /pkg/domain/infra/tunnel/secrets.go
parent0686f0bb2ff22abae7ca90f1b17b32d73b8615a8 (diff)
parentf2115471ddf40123a26c87f8903cc8cf2be57980 (diff)
downloadpodman-0d5aef47d3b5322d8d7d876a27ff06b5eb71c97a.tar.gz
podman-0d5aef47d3b5322d8d7d876a27ff06b5eb71c97a.tar.bz2
podman-0d5aef47d3b5322d8d7d876a27ff06b5eb71c97a.zip
Merge pull request #12051 from machacekondra/fix_http409_errorhandling
Handle HTTP 409 error messages properly
Diffstat (limited to 'pkg/domain/infra/tunnel/secrets.go')
-rw-r--r--pkg/domain/infra/tunnel/secrets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/infra/tunnel/secrets.go b/pkg/domain/infra/tunnel/secrets.go
index 6337c7fbe..e5fa200bd 100644
--- a/pkg/domain/infra/tunnel/secrets.go
+++ b/pkg/domain/infra/tunnel/secrets.go
@@ -28,7 +28,7 @@ func (ic *ContainerEngine) SecretInspect(ctx context.Context, nameOrIDs []string
for _, name := range nameOrIDs {
inspected, err := secrets.Inspect(ic.ClientCtx, name, nil)
if err != nil {
- errModel, ok := err.(errorhandling.ErrorModel)
+ errModel, ok := err.(*errorhandling.ErrorModel)
if !ok {
return nil, nil, err
}
@@ -67,7 +67,7 @@ func (ic *ContainerEngine) SecretRm(ctx context.Context, nameOrIDs []string, opt
for _, name := range nameOrIDs {
secret, err := secrets.Inspect(ic.ClientCtx, name, nil)
if err != nil {
- errModel, ok := err.(errorhandling.ErrorModel)
+ errModel, ok := err.(*errorhandling.ErrorModel)
if !ok {
return nil, err
}