Skip to content
Snippets Groups Projects
Commit 2fefdeee authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty object instead of...

gluon-mesh-batman-adv-core: neighbours.d/wifi: output empty object instead of empty list when there are no neighbours on an interface
parent 9f600946
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ end ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment