diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-07-22 14:58:26 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-07-28 14:16:14 +0200 |
commit | 94bcd70e9735b9308558a4d929b9d59818019b2b (patch) | |
tree | c1dd7b0e81803e374980b485897942e4013e2a35 /applications/luci-app-dockerman/luasrc | |
parent | ef3cfa053938eab82f7c6fd6fca1958a91f3343f (diff) |
luci-app-dockerman: cbi/volmes fix volume remove
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc')
-rw-r--r-- | applications/luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua | 7 |
1 files changed, 3 insertions, 4 deletions
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 <https://github.com/lisaac/luci-app-dockerman> ]]-- - 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 |