From: Florian Eckert Date: Wed, 22 Jul 2020 12:58:26 +0000 (+0200) Subject: luci-app-dockerman: cbi/volmes fix volume remove X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94bcd70e9735b9308558a4d929b9d59818019b2b;p=project%2Fluci.git luci-app-dockerman: cbi/volmes fix volume remove Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua index 4a1c905a1e..8dae4a020d 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua @@ -3,7 +3,6 @@ LuCI - Lua Configuration Interface Copyright 2019 lisaac ]]-- - local docker = require "luci.model.docker" local dk = docker.new() @@ -113,9 +112,9 @@ o.forcewrite = true o.write = function(self, section) local volume_selected = {} - for _, volume_table_sid in ipairs(volume_list) do - if volume_list[volume_table_sid]._selected == 1 then - volume_selected[#volume_selected+1] = volume_table_sid + for k in pairs(volume_list) do + if volume_list[k]._selected == 1 then + volume_selected[#volume_selected+1] = k end end