mirror of https://github.com/MISP/misp-modules
fix bug on loop
parent
eb48635ce5
commit
382025453e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue