gluon-status-page-api: fix indentation of luasrc/lib/gluon/status-page/www/cgi-bin/interfaces

This commit is contained in:
Christof Schulze 2017-02-11 17:26:06 +01:00 committed by Matthias Schiffer
parent 8b63ac792a
commit b38bd942b9

View File

@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn)
ubus.close(uconn) ubus.close(uconn)
interfaces = {} interfaces = {}
for _,ifname in ipairs(list) do for _,ifname in ipairs(list) do
pcall(function() pcall(function()
local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address')) local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address'))
interfaces[ifname] = { address = address } interfaces[ifname] = { address = address }
end) end)
end end
io.write(json.stringify(interfaces)) io.write(json.stringify(interfaces))