Skip to content

Commit

Permalink
Merge pull request #245 from mikekatica/fix/always-add-host-port
Browse files Browse the repository at this point in the history
fixes for issue 244
  • Loading branch information
solarkennedy authored Mar 7, 2018
2 parents 20876b0 + a7127e8 commit b6d06f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marathon/models/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MarathonContainerPortMapping(MarathonObject):
PROTOCOLS = ['tcp', 'udp', 'udp,tcp']
"""Valid protocols"""

def __init__(self, name=None, container_port=None, host_port=0, service_port=None, protocol='tcp', labels=None):
def __init__(self, name=None, container_port=None, host_port=None, service_port=None, protocol='tcp', labels=None):
self.name = name
self.container_port = container_port
self.host_port = host_port
Expand Down

0 comments on commit b6d06f4

Please sign in to comment.