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
Branches
Tags
No related merge requests found
......@@ -32,7 +32,7 @@ end
local wifi = {}
for address, iface in pairs(interfaces()) do
wifi[address] = { neighbours = neighbours(iface) }
wifi[address] = { [{}] = true, neighbours = neighbours(iface) }
end
if next(wifi) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment