From 807193ece562ea7862c90bbcaafe58823eb3e42d Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 30 Sep 2022 14:29:31 -0400 Subject: [PATCH] Island: Use list comprehension instead of map() --- monkey/monkey_island/cc/services/reporting/report.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index 31827a403..b3673dd90 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -121,9 +121,7 @@ class ReportService: { "hostname": machine.hostname, "ip_addresses": [str(iface.ip) for iface in machine.network_interfaces], - "accessible_from_nodes": list( - map(lambda m: m.dict(simplify=True), accessible_from) - ), + "accessible_from_nodes": [m.dict(simplify=True) for m in accessible_from], "domain_name": "", # TODO add services "services": [],