From baf3a9b3a72e4d98ad30ee56a7dd81812fb1fd21 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Fri, 20 Mar 2020 13:00:37 -0500 Subject: 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 --- cmd/podmanV2/containers/exists.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/podmanV2/containers/exists.go b/cmd/podmanV2/containers/exists.go index 4f9e6c44a..93989b54a 100644 --- a/cmd/podmanV2/containers/exists.go +++ b/cmd/podmanV2/containers/exists.go @@ -29,11 +29,11 @@ func init() { } func exists(cmd *cobra.Command, args []string) error { - exists, err := registry.ContainerEngine().ContainerExists(context.Background(), args[0]) + response, err := registry.ContainerEngine().ContainerExists(context.Background(), args[0]) if err != nil { return err } - if !exists { + if !response.Value { os.Exit(1) } return nil -- cgit v1.2.3-54-g00ecf