mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Merge pull request #26252 from sonnysasaka/fix-error-check
podman system check: Fix error check logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user