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:
parent
80f133b6a3
commit
faabe98312
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ plugins = {
|
|||
|
||||
local plugin_dir = "/usr/share/luci/statistics/plugins/"
|
||||
for filename in nixio.fs.dir(plugin_dir) do
|
||||
local name = filename:gsub("%.lua", "")
|
||||
local name = filename:gsub("%.json", "")
|
||||
if (name == "exec") then
|
||||
plugins[name] = config_exec
|
||||
elseif (name == "iptables") then
|
||||
|
|
Loading…
Reference in a new issue