-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consular crashes if a Marathon task has no ports #47
Conversation
* If 0 ports, don't specify a port for the Consul service * If more than 1 port, use the lowest port
* Fixes pypy tests also just a better way to do things
Ready for review. I'm not tackling multiple ports at the moment because that's significantly more complicated. Will leave up to #29. |
[port] = ports | ||
else: | ||
# TODO: Support multiple ports (issue #29) | ||
port = sorted(ports)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err... min()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah lol
👍 and nice job on splitting it up like this. |
Consular crashes if a Marathon task has no ports
Related to #29.
We hardcode it...
task['port'][0]