Island: Use list comprehension instead of map()
This commit is contained in:
parent
519f48b6d8
commit
807193ece5
|
@ -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": [],
|
||||
|
|
Loading…
Reference in New Issue