Skip to content

Commit

Permalink
Changed empty message
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstromviktor committed Jan 30, 2024
1 parent 94af110 commit e231f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serve_event_listener/status_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_status(self, status_object: V1PodStatus) -> Tuple[str, str, str]:
Returns:
- str: The status of the pod.
"""
empty_message = "empty message"
empty_message = ""
pod_message = status_object.message if status_object.message else empty_message

def process_container_statuses(container_statuses, init_containers=False):
Expand All @@ -121,7 +121,7 @@ def process_container_statuses(container_statuses, init_containers=False):
else:
return (
self.mapped_status(terminated.reason),
terminated.message,
terminated.message if terminated.message else empty_message,
pod_message,
)

Expand All @@ -130,7 +130,7 @@ def process_container_statuses(container_statuses, init_containers=False):
if waiting:
return (
self.mapped_status(waiting.reason),
waiting.message,
waiting.message if waiting.message else empty_message,
pod_message,
)
else:
Expand Down

0 comments on commit e231f8f

Please sign in to comment.