summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-04-28 23:43:31 +0200
committerJo-Philipp Wich <jo@mein.io>2023-04-28 23:43:58 +0200
commit39d387f34c083afab9589952c6bcc9a0028cc9da (patch)
tree468febcaa8f7c1b864870f3bfde7a17da40748b1 /applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
parentb2476ba71de964828def0967793556bdb141d7e2 (diff)
luci-app-dockerman: gracefully handle empty registry mirror setting
Fixes: #6300 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua')
-rw-r--r--applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
index dd4828b34f..022664738d 100644
--- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
+++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
@@ -65,7 +65,7 @@ if docker.new():_ping().code == 200 then
end
docker_info_table['8IndexServerAddress']._value = docker_info.body.IndexServerAddress
- for i, v in ipairs(docker_info.body.RegistryConfig.Mirrors) do
+ for i, v in ipairs(docker_info.body.RegistryConfig.Mirrors or {}) do
docker_info_table['9RegistryMirrors']._value = docker_info_table['9RegistryMirrors']._value == "-" and v or (docker_info_table['9RegistryMirrors']._value .. ", " .. v)
end