mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 17:58:04 +02:00
pruner: report: fix broken checks for state (wrong precedence rules)
This commit is contained in:
parent
190c7270d9
commit
5ec7a5c078
@ -239,10 +239,10 @@ func (p *Pruner) Report() *Report {
|
|||||||
|
|
||||||
r := Report{State: p.state.String()}
|
r := Report{State: p.state.String()}
|
||||||
|
|
||||||
if p.state & PlanWait|ExecWait != 0 {
|
if p.state & (PlanWait|ExecWait) != 0 {
|
||||||
r.SleepUntil = p.sleepUntil
|
r.SleepUntil = p.sleepUntil
|
||||||
}
|
}
|
||||||
if p.state & PlanWait|ExecWait|ErrPerm != 0 {
|
if p.state & (PlanWait|ExecWait|ErrPerm) != 0 {
|
||||||
if p.err != nil {
|
if p.err != nil {
|
||||||
r.Error = p.err.Error()
|
r.Error = p.err.Error()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user