summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-03-20 13:00:37 -0500
committerBrent Baude <bbaude@redhat.com>2020-03-20 13:01:24 -0500
commitbaf3a9b3a72e4d98ad30ee56a7dd81812fb1fd21 (patch)
tree45e486ec8c793fda0f05d39bfaf9ce1d9016b02e /pkg/domain/infra/tunnel
parent87293028e61d0c88c258ed9f4a82c4be7f0bc896 (diff)
downloadpodman-baf3a9b3a72e4d98ad30ee56a7dd81812fb1fd21.tar.gz
podman-baf3a9b3a72e4d98ad30ee56a7dd81812fb1fd21.tar.bz2
podman-baf3a9b3a72e4d98ad30ee56a7dd81812fb1fd21.zip
use boolreport for containerexists response
in the case of exists, use a boolreport structure so that responses can be consistent pointer and error Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/containers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go
index 84b6f2906..c869ad2f3 100644
--- a/pkg/domain/infra/tunnel/containers.go
+++ b/pkg/domain/infra/tunnel/containers.go
@@ -7,8 +7,9 @@ import (
"github.com/containers/libpod/pkg/domain/entities"
)
-func (ic *ContainerEngine) ContainerExists(ctx context.Context, nameOrId string) (bool, error) {
- return containers.Exists(ctx, nameOrId)
+func (ic *ContainerEngine) ContainerExists(ctx context.Context, nameOrId string) (*entities.BoolReport, error) {
+ exists, err := containers.Exists(ctx, nameOrId)
+ return &entities.BoolReport{Value: exists}, err
}
func (ic *ContainerEngine) ContainerWait(ctx context.Context, namesOrIds []string, options entities.WaitOptions) ([]entities.WaitReport, error) {