mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 08:57:17 +00:00
Signed-off-by: rkevin <rk@rkevin.dev>
This commit is contained in:
parent
de781f4a76
commit
1f147912e4
1 changed files with 7 additions and 1 deletions
|
|
@ -27,7 +27,13 @@ if obj.status.ceph ~= nil and obj.status.ceph.health ~= nil then
|
|||
-- Build details message from status.ceph.details if available
|
||||
if obj.status.ceph.details ~= nil then
|
||||
local detail_parts = {}
|
||||
for detail_type, detail_info in pairs(obj.status.ceph.details) do
|
||||
local sorted_detail_types = {}
|
||||
for detail_type, _ in pairs(obj.status.ceph.details) do
|
||||
table.insert(sorted_detail_types, detail_type)
|
||||
end
|
||||
table.sort(sorted_detail_types)
|
||||
for _, detail_type in ipairs(sorted_detail_types) do
|
||||
local detail_info = obj.status.ceph.details[detail_type]
|
||||
if detail_info.message ~= nil then
|
||||
table.insert(detail_parts, detail_info.message)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue