Skip to content

Commit

Permalink
fix another missing enum case
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Dec 6, 2023
1 parent fabab42 commit d30c9b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/server/api_container/server/api_container_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d30c9b6

Please sign in to comment.