diff --git a/serve_event_listener/status_data.py b/serve_event_listener/status_data.py index fbaf582..a322a95 100644 --- a/serve_event_listener/status_data.py +++ b/serve_event_listener/status_data.py @@ -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): @@ -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, ) @@ -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: