gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty object instead of empty list when there are no neighbours on an interface
This commit is contained in:
parent
9f6009469b
commit
2fefdeee63
@ -32,7 +32,7 @@ end
|
|||||||
|
|
||||||
local wifi = {}
|
local wifi = {}
|
||||||
for address, iface in pairs(interfaces()) do
|
for address, iface in pairs(interfaces()) do
|
||||||
wifi[address] = { neighbours = neighbours(iface) }
|
wifi[address] = { [{}] = true, neighbours = neighbours(iface) }
|
||||||
end
|
end
|
||||||
|
|
||||||
if next(wifi) then
|
if next(wifi) then
|
||||||
|
Loading…
Reference in New Issue
Block a user