From 9dbd241e636104b41ccf243582395c1040cfa607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 1 Dec 2016 12:14:16 +0100 Subject: [PATCH] fix typo --- misp_modules/modules/expansion/domaintools.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misp_modules/modules/expansion/domaintools.py b/misp_modules/modules/expansion/domaintools.py index f483b38..2e8262e 100755 --- a/misp_modules/modules/expansion/domaintools.py +++ b/misp_modules/modules/expansion/domaintools.py @@ -61,19 +61,19 @@ class DomainTools(object): to_return = [] if self.reg_mail: for mail, comment in self.reg_mail.items(): - to_return.append({'type': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''}) + to_return.append({'types': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''}) if self.reg_phone: for phone, comment in self.reg_phone.items(): - to_return.append({'type': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''}) + to_return.append({'types': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''}) if self.reg_name: for name, comment in self.reg_name.items(): - to_return.append({'type': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''}) + to_return.append({'types': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''}) if self.registrar: - to_return.append({'type': ['whois-registrar'], 'values': list(self.registrar)}) + to_return.append({'types': ['whois-registrar'], 'values': list(self.registrar)}) if self.creation_date: - to_return.append({'type': ['whois-creation-date'], 'values': list(self.creation_date)}) + to_return.append({'types': ['whois-creation-date'], 'values': list(self.creation_date)}) if self.freetext: - to_return.append({'type': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'}) + to_return.append({'types': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'}) return to_return