From d30c9b63f1366f89fe846ea40a51b271b0490394 Mon Sep 17 00:00:00 2001 From: lostbean Date: Wed, 6 Dec 2023 10:23:37 -0300 Subject: [PATCH] fix another missing enum case --- core/server/api_container/server/api_container_service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/server/api_container/server/api_container_service.go b/core/server/api_container/server/api_container_service.go index 5e8dabd37e..082fb38d1a 100644 --- a/core/server/api_container/server/api_container_service.go +++ b/core/server/api_container/server/api_container_service.go @@ -954,6 +954,9 @@ func convertServiceStatusToServiceInfoStatus(serviceStatus service.ServiceStatus return kurtosis_core_rpc_api_bindings.ServiceStatus_RUNNING, nil case service.ServiceStatus_Stopped: return kurtosis_core_rpc_api_bindings.ServiceStatus_STOPPED, nil + case service.ServiceStatus_Registered: + // missing case flagged by the linter, returning default to keep the same behavior since there is match on gRPC api + return kurtosis_core_rpc_api_bindings.ServiceStatus_UNKNOWN, stacktrace.NewError("Failed to convert service status %v", serviceStatus) default: return kurtosis_core_rpc_api_bindings.ServiceStatus_UNKNOWN, stacktrace.NewError("Failed to convert service status %v", serviceStatus) }