luci-app-dockerman: cbi/volmes fix volume remove
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
ef3cfa0539
commit
94bcd70e97
1 changed files with 3 additions and 4 deletions
|
@ -3,7 +3,6 @@ LuCI - Lua Configuration Interface
|
||||||
Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman>
|
Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman>
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
|
|
||||||
local docker = require "luci.model.docker"
|
local docker = require "luci.model.docker"
|
||||||
local dk = docker.new()
|
local dk = docker.new()
|
||||||
|
|
||||||
|
@ -113,9 +112,9 @@ o.forcewrite = true
|
||||||
o.write = function(self, section)
|
o.write = function(self, section)
|
||||||
local volume_selected = {}
|
local volume_selected = {}
|
||||||
|
|
||||||
for _, volume_table_sid in ipairs(volume_list) do
|
for k in pairs(volume_list) do
|
||||||
if volume_list[volume_table_sid]._selected == 1 then
|
if volume_list[k]._selected == 1 then
|
||||||
volume_selected[#volume_selected+1] = volume_table_sid
|
volume_selected[#volume_selected+1] = k
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue