Merge pull request #26252 from sonnysasaka/fix-error-check

podman system check: Fix error check logic
This commit is contained in:
openshift-merge-bot[bot] 2025-06-02 18:29:32 +00:00 committed by GitHub
commit 226155e7ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -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