summaryrefslogtreecommitdiff
path: root/cmd/podmanV2
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podmanV2')
-rw-r--r--cmd/podmanV2/containers/exists.go4
1 files changed, 2 insertions, 2 deletions
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