mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
fix remote connection use of context
Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (ic *ContainerEngine) ContainerExists(ctx context.Context, nameOrId string) (*entities.BoolReport, error) {
|
func (ic *ContainerEngine) ContainerExists(ctx context.Context, nameOrId string) (*entities.BoolReport, error) {
|
||||||
exists, err := containers.Exists(ctx, nameOrId)
|
exists, err := containers.Exists(ic.ClientCxt, nameOrId)
|
||||||
return &entities.BoolReport{Value: exists}, err
|
return &entities.BoolReport{Value: exists}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user