Defaults the target port to the container port.

This commit is contained in:
jackgr
2016-01-26 17:00:40 -08:00
parent 1c24362722
commit 25a58d1e54
@@ -160,8 +160,9 @@ def GenerateServicePorts(context, name):
Returns:
A dict containing a port definition
"""
service_port = context.properties.get('service_port', None)
target_port = context.properties.get('target_port', None)
container_port = context.properties.get('container_port', None)
target_port = context.properties.get('target_port', container_port)
service_port = context.properties.get('service_port', target_port)
protocol = context.properties.get('protocol')
ports = {}