fix: [virustotal] Resolve key error when user enrich hostname

pull/424/head
Jakub Onderka 2020-08-17 17:34:21 +02:00
parent cda5feedaa
commit bd7f7fa1f3
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class VirusTotalParser(object):
def parse_resolutions(self, resolutions, subdomains=None, uuids=None):
domain_ip_object = MISPObject('domain-ip')
if self.attribute.type == 'domain':
if self.attribute.type in ('domain', 'hostname'):
domain_ip_object.add_attribute('domain', type='domain', value=self.attribute.value)
attribute_type, relation, key = ('ip-dst', 'ip', 'ip_address')
else: