Skip to content

Commit

Permalink
update reason if nil
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed May 30, 2024
1 parent d9255a5 commit 44dec87
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,23 @@
message = condition.message
end
if condition.reason == nil then
reason = ""
else
message = condition.reason
end
if condition.status == "Unknown" then
progressing = true
msg = msg .. i .. ": " .. condition.type .. " | " .. condition.status .. " | " .. condition.reason .. " | " .. message .. "\n"
msg = msg .. i .. ": " .. condition.type .. " | " .. condition.status .. " | " .. reason .. " | " .. message .. "\n"
elseif condition.status == "False" then
if condition.type == "LatestDeploymentReady" then
progressing = true
else
degraded = true
end
msg = msg .. i .. ": " .. condition.type .. " | " .. condition.status .. " | " .. condition.reason .. " | " .. message .. "\n"
msg = msg .. i .. ": " .. condition.type .. " | " .. condition.status .. " | " .. reason .. " | " .. message .. "\n"
end
end
Expand Down

0 comments on commit 44dec87

Please sign in to comment.