Fixes crash for container-recipes that expose no external ports.
This commit is contained in:
parent
303eb99f49
commit
346a63abaa
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
public Port[] GetServicePortsForContainerRecipe(ContainerRecipe containerRecipe)
|
public Port[] GetServicePortsForContainerRecipe(ContainerRecipe containerRecipe)
|
||||||
{
|
{
|
||||||
|
if (servicePortMap.ContainsKey(containerRecipe)) return Array.Empty<Port>();
|
||||||
return servicePortMap[containerRecipe];
|
return servicePortMap[containerRecipe];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue