From 7c4a2ea12ce34b4f48dad6fe5530eb34aa168554 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 2 Jun 2023 11:38:52 +0200 Subject: [PATCH] Fixes the fix of the failure for container-recipes with no exposed ports. --- KubernetesWorkflow/RunningPod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KubernetesWorkflow/RunningPod.cs b/KubernetesWorkflow/RunningPod.cs index bee0df91..16184106 100644 --- a/KubernetesWorkflow/RunningPod.cs +++ b/KubernetesWorkflow/RunningPod.cs @@ -20,7 +20,7 @@ public Port[] GetServicePortsForContainerRecipe(ContainerRecipe containerRecipe) { - if (servicePortMap.ContainsKey(containerRecipe)) return Array.Empty(); + if (!servicePortMap.ContainsKey(containerRecipe)) return Array.Empty(); return servicePortMap[containerRecipe]; } }