diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-04-28 23:43:31 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-04-28 23:43:58 +0200 |
commit | 39d387f34c083afab9589952c6bcc9a0028cc9da (patch) | |
tree | 468febcaa8f7c1b864870f3bfde7a17da40748b1 /applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua | |
parent | b2476ba71de964828def0967793556bdb141d7e2 (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.lua | 2 |
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 |