regression: only run checks for specified target
This commit is contained in:
parent
17c66b5100
commit
97db2d0b9e
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ func (box Box) RunChecks() ([]CheckResult, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if event.Target != s.Id && event.Target != eventTargetAll {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
checker := checkers[event.Type]
|
checker := checkers[event.Type]
|
||||||
if checker.checkFunc == nil {
|
if checker.checkFunc == nil {
|
||||||
boxLogger.Warnf("ignoring unknown event type %s", event.Type)
|
boxLogger.Warnf("ignoring unknown event type %s", event.Type)
|
||||||
|
|
Loading…
Add table
Reference in a new issue