diff --git a/monkey_island/cc/services/report.py b/monkey_island/cc/services/report.py index 30cdf14ec..3a3509a40 100644 --- a/monkey_island/cc/services/report.py +++ b/monkey_island/cc/services/report.py @@ -78,7 +78,7 @@ class ReportService: 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'], 'exploits': [exploit['exploiter'] for exploit in monkey['exploits'] if exploit['result']] }