luci-app-statistics: fix config generation

Fixes: 556e14c74 ("luci-app-statistics: convert plugin definitions to JSON")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-07 11:46:53 +01:00
parent 80f133b6a3
commit faabe98312

View file

@ -287,7 +287,7 @@ plugins = {
local plugin_dir = "/usr/share/luci/statistics/plugins/" local plugin_dir = "/usr/share/luci/statistics/plugins/"
for filename in nixio.fs.dir(plugin_dir) do for filename in nixio.fs.dir(plugin_dir) do
local name = filename:gsub("%.lua", "") local name = filename:gsub("%.json", "")
if (name == "exec") then if (name == "exec") then
plugins[name] = config_exec plugins[name] = config_exec
elseif (name == "iptables") then elseif (name == "iptables") then