mirror of https://github.com/containers/podman.git
Merge pull request #26252 from sonnysasaka/fix-error-check
podman system check: Fix error check logic
This commit is contained in:
commit
226155e7ef
|
@ -64,9 +64,12 @@ func check(cmd *cobra.Command, args []string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !checkOptions.Repair && !checkOptions.RepairLossy && response.Errors {
|
if !checkOptions.Repair && !checkOptions.RepairLossy {
|
||||||
|
if response.Errors {
|
||||||
return errors.New("damage detected in local storage")
|
return errors.New("damage detected in local storage")
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
recheckOptions := checkOptions
|
recheckOptions := checkOptions
|
||||||
recheckOptions.Repair = false
|
recheckOptions.Repair = false
|
||||||
|
|
Loading…
Reference in New Issue