fix bug on loop

pull/498/head
Sebdraven 2021-05-07 14:38:42 +02:00
parent eb48635ce5
commit 382025453e
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class OnypheClient:
if type(r['hostname']) is list: if type(r['hostname']) is list:
for hostname in r['hostname']: for hostname in r['hostname']:
self.misp_event.add_attribute( self.misp_event.add_attribute(
'hostname', r['hostname']) 'hostname', hostname)
if 'ip' in r: if 'ip' in r:
if type(r['ip']) is str: if type(r['ip']) is str: