Fix bug with exploited nodes

This commit is contained in:
Itay Mizeretz 2017-11-28 13:40:51 +02:00
parent f72b32bb67
commit 4f6ed95501
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ReportService:
exploited = [ exploited = [
{ {
'label': NodeService.get_node_hostname(monkey), 'label': NodeService.get_node_hostname(NodeService.get_node_or_monkey_by_id(monkey['id'])),
'ip_addresses': monkey['ip_addresses'], 'ip_addresses': monkey['ip_addresses'],
'exploits': [exploit['exploiter'] for exploit in monkey['exploits'] if exploit['result']] 'exploits': [exploit['exploiter'] for exploit in monkey['exploits'] if exploit['result']]
} }