From 0a0a747543b663a27f3d6af28162ba617f2ff167 Mon Sep 17 00:00:00 2001 From: Gero Posmyk-Leinemann Date: Thu, 27 Feb 2025 12:09:25 +0000 Subject: [PATCH] [ws-daemon] Fix panix in tests Tool: gitpod/catfood.gitpod.cloud --- components/ws-daemon/pkg/controller/workspace_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ws-daemon/pkg/controller/workspace_controller.go b/components/ws-daemon/pkg/controller/workspace_controller.go index eb0fc194a5fccb..7c5e4eb5ca8710 100644 --- a/components/ws-daemon/pkg/controller/workspace_controller.go +++ b/components/ws-daemon/pkg/controller/workspace_controller.go @@ -226,7 +226,7 @@ func (wsc *WorkspaceController) handleWorkspaceInit(ctx context.Context, ws *wor } func initializerMetricsFromInitializerStats(stats *csapi.InitializerMetrics) *workspacev1.InitializerMetrics { - if stats == nil { + if stats == nil || len(*stats) == 0 { return nil }