зеркало из https://github.com/mozilla/MozDef.git
Fix notifymozdefbot logic
This commit is contained in:
Родитель
197788bf26
Коммит
06dbeb12f3
|
@ -309,7 +309,7 @@ class alertConsumer(ConsumerMixin):
|
|||
"alertworker exception: unknown body type received %r" % body)
|
||||
return
|
||||
|
||||
if 'notify_mozdefbot' not in bodyDict or bodyDict['notify_mozdefbot'] is False:
|
||||
if 'notify_mozdefbot' in bodyDict and bodyDict['notify_mozdefbot'] is False:
|
||||
# If the alert tells us to not notify, then don't post to IRC
|
||||
message.ack()
|
||||
return
|
||||
|
|
Загрузка…
Ссылка в новой задаче