Merge pull request #7256 from zhaoxiangchun/bugfix/zxc-suggest-mon

修复监控报警规则删除的问题
This commit is contained in:
yunion-ci-robot
2020-07-20 02:04:22 +08:00
committed by GitHub
+2 -1
View File
@@ -639,7 +639,8 @@ func (alert *SCommonAlert) customizeDeleteNotis(
func (alert *SCommonAlert) Delete(ctx context.Context, userCred mcclient.TokenCredential) error {
CommonAlertManager.DeleteSubscriptionAlert(alert)
return alert.SetStatus(userCred, monitor.ALERT_STATUS_DELETED, "")
return alert.SAlert.Delete(ctx, userCred)
}
func (self *SCommonAlertManager) GetSystemAlerts() ([]SCommonAlert, error) {