diff options
author | baude <bbaude@redhat.com> | 2021-01-12 13:44:56 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2021-01-13 09:35:24 -0600 |
commit | 827f6c9cb01929a7c36a465d633c82d384ed7ddb (patch) | |
tree | 581ce5889f07b19770bbd9c4ff0dd56ddfc9ea50 /pkg/domain/infra/tunnel/volumes.go | |
parent | 99c5746150799d6cfe3ea612d3c88c6b904f9312 (diff) | |
download | podman-827f6c9cb01929a7c36a465d633c82d384ed7ddb.tar.gz podman-827f6c9cb01929a7c36a465d633c82d384ed7ddb.tar.bz2 podman-827f6c9cb01929a7c36a465d633c82d384ed7ddb.zip |
Reduce general binding binary size
when using the bindings to *only* make a connection, the binary was
rough 28MB. This PR reduces it down to 11. There is more work to do
but it will come in a secondary PR.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/volumes.go')
-rw-r--r-- | pkg/domain/infra/tunnel/volumes.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/volumes.go b/pkg/domain/infra/tunnel/volumes.go index 10e8d7da8..f21336828 100644 --- a/pkg/domain/infra/tunnel/volumes.go +++ b/pkg/domain/infra/tunnel/volumes.go @@ -6,6 +6,7 @@ import ( "github.com/containers/podman/v2/pkg/bindings/volumes" "github.com/containers/podman/v2/pkg/domain/entities" "github.com/containers/podman/v2/pkg/domain/entities/reports" + "github.com/containers/podman/v2/pkg/errorhandling" "github.com/pkg/errors" ) @@ -55,7 +56,7 @@ func (ic *ContainerEngine) VolumeInspect(ctx context.Context, namesOrIds []strin for _, id := range namesOrIds { data, err := volumes.Inspect(ic.ClientCtx, id, nil) if err != nil { - errModel, ok := err.(entities.ErrorModel) + errModel, ok := err.(errorhandling.ErrorModel) if !ok { return nil, nil, err } |