Island: Use list comprehension instead of map()

This commit is contained in:
Mike Salvatore 2022-09-30 14:29:31 -04:00
parent 519f48b6d8
commit 807193ece5
1 changed files with 1 additions and 3 deletions

View File

@ -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": [],