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,
|
"hostname": machine.hostname,
|
||||||
"ip_addresses": [str(iface.ip) for iface in machine.network_interfaces],
|
"ip_addresses": [str(iface.ip) for iface in machine.network_interfaces],
|
||||||
"accessible_from_nodes": list(
|
"accessible_from_nodes": [m.dict(simplify=True) for m in accessible_from],
|
||||||
map(lambda m: m.dict(simplify=True), accessible_from)
|
|
||||||
),
|
|
||||||
"domain_name": "",
|
"domain_name": "",
|
||||||
# TODO add services
|
# TODO add services
|
||||||
"services": [],
|
"services": [],
|
||||||
|
|
Loading…
Reference in New Issue