F 修复钉钉告警错误的提示需要设置调用凭据的问题

pull/59/head
vapao 2020-04-24 17:32:57 +08:00
parent e68677a62f
commit ce96e01225
1 changed files with 1 additions and 4 deletions

View File

@ -61,10 +61,7 @@ def notify_by_email(event, subject, grp):
def notify_by_dd(event, subject, grp): def notify_by_dd(event, subject, grp):
spug_key, u_ids = _parse_args(grp) _, u_ids = _parse_args(grp)
if not spug_key:
Notify.make_notify(notify_source, '1', '发送报警信息失败', '未配置报警服务调用凭据,请在系统管理/系统设置/报警服务设置中配置。')
return
users = set(x.ding for x in Contact.objects.filter(id__in=u_ids, ding__isnull=False)) users = set(x.ding for x in Contact.objects.filter(id__in=u_ids, ding__isnull=False))
if users: if users:
texts = [ texts = [