diff options
author | baude <bbaude@redhat.com> | 2021-01-18 09:29:40 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2021-01-18 13:48:51 -0600 |
commit | 4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e (patch) | |
tree | ed2003809730d195c95905cf4c307a8e9047d2d0 /pkg/domain/infra/tunnel/containers.go | |
parent | 5b3c7a52939275784c45c9747dd5864bd0581ff5 (diff) | |
download | podman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.tar.gz podman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.tar.bz2 podman-4ccb0729b4f0a25eb53f62c2f6ca7f8925f0fe4e.zip |
Add binding options for container|pod exists
It turns out an options was added to container exists so it makes sense
to have pods and container exists calls have an optional structure for
options.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/containers.go')
-rw-r--r-- | pkg/domain/infra/tunnel/containers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 4ee623703..84a07f8e9 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -31,7 +31,7 @@ func (ic *ContainerEngine) ContainerRunlabel(ctx context.Context, label string, } func (ic *ContainerEngine) ContainerExists(ctx context.Context, nameOrID string, options entities.ContainerExistsOptions) (*entities.BoolReport, error) { - exists, err := containers.Exists(ic.ClientCtx, nameOrID, options.External) + exists, err := containers.Exists(ic.ClientCtx, nameOrID, new(containers.ExistsOptions).WithExternal(options.External)) return &entities.BoolReport{Value: exists}, err } |