Fixes crash for container-recipes that expose no external ports.

This commit is contained in:
benbierens 2023-06-02 11:30:03 +02:00
parent 303eb99f49
commit 346a63abaa
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
public Port[] GetServicePortsForContainerRecipe(ContainerRecipe containerRecipe)
{
if (servicePortMap.ContainsKey(containerRecipe)) return Array.Empty<Port>();
return servicePortMap[containerRecipe];
}
}