luci-base: network.lua: fix interface.ports() function return value
authorAnton Kikin <a.kikin@tano-systems.com>
Sun, 15 Jul 2018 12:44:03 +0000 (15:44 +0300)
committerAnton Kikin <a.kikin@tano-systems.com>
Sat, 7 Dec 2019 19:28:17 +0000 (22:28 +0300)
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
modules/luci-compat/luasrc/model/network.lua

index 7c88b428cc7b321106d04499630171809b05a857..b3fc2a7c28db7ae191048431f289eee23e356835 100644 (file)
@@ -1447,6 +1447,7 @@ function interface.ports(self)
                for _, iface in ipairs(members) do
                        ifaces[#ifaces+1] = interface(iface)
                end
+               return ifaces
        end
 end