From 94bcd70e9735b9308558a4d929b9d59818019b2b Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 22 Jul 2020 14:58:26 +0200 Subject: luci-app-dockerman: cbi/volmes fix volume remove Signed-off-by: Florian Eckert --- .../luci-app-dockerman/luasrc/model/cbi/dockerman/volumes.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-dockerman/luasrc/model') 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 -- cgit v1.2.3