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]; } }