Merge pull request #1741 from dibdot/mwan-fix
authorHannu Nyman <hannu.nyman@iki.fi>
Mon, 9 Apr 2018 14:33:21 +0000 (17:33 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Apr 2018 14:33:21 +0000 (17:33 +0300)
luci-app-mwan3: bugfix

applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua

index 3a896d3..a439502 100644 (file)
@@ -171,7 +171,7 @@ metric = mwan_interface:option(DummyValue, "metric", translate("Metric"),
        translate("This displays the metric assigned to this interface in /etc/config/network"))
 metric.rawhtml = true
 function metric.cfgvalue(self, s)
-       local uci = uci.cursor(nil, "/var/state")
+       local uci = require "luci.model.uci".cursor(nil, "/var/state")
        local metric = uci:get("network", arg[1], "metric")
        if metric then
                return metric