bugfix: do not make event if target is nil

This commit is contained in:
Ulric Qin 2022-09-23 10:06:10 +08:00
parent 2e64c83632
commit 78b2e54910
1 changed files with 3 additions and 0 deletions

View File

@ -371,6 +371,9 @@ func (r *RuleEval) MakeNewEvent(from string, now int64, clusterName string, vect
logger.Debugf("event_enable_in_bg: rule_eval:%d", r.rule.Id)
continue
}
} else {
// target 已经不存在了,可能是被删除了
continue
}
}