diff --git a/cmd/podman/system/check.go b/cmd/podman/system/check.go index 3a3f0348bc..f3893f54e5 100644 --- a/cmd/podman/system/check.go +++ b/cmd/podman/system/check.go @@ -64,8 +64,11 @@ func check(cmd *cobra.Command, args []string) error { return err } - if !checkOptions.Repair && !checkOptions.RepairLossy && response.Errors { - return errors.New("damage detected in local storage") + if !checkOptions.Repair && !checkOptions.RepairLossy { + if response.Errors { + return errors.New("damage detected in local storage") + } + return nil } recheckOptions := checkOptions