Skip to content

Commit

Permalink
another crash fix crashing on crashes πŸ™ƒ
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Dec 14, 2023
1 parent 9637e07 commit 6b7e889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def overcnt(jeez, kctl, pod, args):
reason = container["state"]["waiting"]["reason"]
if reason in failed_containers:
state = colourText(reason, "red")
errmsg = container["lastState"]["terminated"]["message"]
if "message" in container["lastState"]["terminated"]:
errmsg = container["lastState"]["terminated"]["message"]
else:
state = colourText(state + " " + reason, "yellow")

Expand Down

0 comments on commit 6b7e889

Please sign in to comment.