mirror of https://github.com/MISP/misp-modules
add return
parent
7f52a15d16
commit
966f9603a9
|
@ -267,7 +267,7 @@ def expand_whois(api, domain):
|
||||||
status_ok = True
|
status_ok = True
|
||||||
item_registrant = __select_registrant_item(results)
|
item_registrant = __select_registrant_item(results)
|
||||||
if item_registrant:
|
if item_registrant:
|
||||||
|
print(item_registrant)
|
||||||
if 'email' in item_registrant[0]:
|
if 'email' in item_registrant[0]:
|
||||||
r.append(
|
r.append(
|
||||||
{
|
{
|
||||||
|
@ -511,7 +511,7 @@ def __select_registrant_item(entry):
|
||||||
if 'contacts' in entry:
|
if 'contacts' in entry:
|
||||||
res = list(filter(lambda x: x['type'] == 'registrant',
|
res = list(filter(lambda x: x['type'] == 'registrant',
|
||||||
entry['contacts']))
|
entry['contacts']))
|
||||||
print(res)
|
return res
|
||||||
if 'contact' in entry:
|
if 'contact' in entry:
|
||||||
res = list(filter(lambda x: x['type'] == 'registrant',
|
res = list(filter(lambda x: x['type'] == 'registrant',
|
||||||
entry['contact']))
|
entry['contact']))
|
||||||
|
|
Loading…
Reference in New Issue