Skip to content

Allow a list of servers to be passed in to the client#7

Merged
asher merged 6 commits into
asher:masterfrom
keshavdv:server-priority-list
Aug 27, 2015
Merged

Allow a list of servers to be passed in to the client#7
asher merged 6 commits into
asher:masterfrom
keshavdv:server-priority-list

Conversation

@keshavdv
Copy link
Copy Markdown
Contributor

Adds support to pass in a list of Chronos servers that will be tried in order (to mimic the marathon-python client). Also adds some custom exception classes so that it's easier to try-catch specific things.

Also fixes issue #2.

@solarkennedy
Copy link
Copy Markdown
Collaborator

Ooo this is good stuff, very similar to the marathon client library. Nice.

@keshavdv
Copy link
Copy Markdown
Contributor Author

This probably constitutes a breaking API change with the rename of the hostname -> servers kwarg

…nto server-priority-list

Conflicts:
	chronos/__init__.py
	tests/test_chronos_init.py
@keshavdv
Copy link
Copy Markdown
Contributor Author

Merges in changes from #9 to prevent Github's auto merge from breaking the code.

@Rob-Johnson
Copy link
Copy Markdown
Collaborator

Thanks Keshav. @asher it'd be great if we could get this merged.

@asher
Copy link
Copy Markdown
Owner

asher commented Aug 27, 2015

@keshavdv would you mind updating the README.md to show an example of passing multiple servers, as in marathon-python/README.md? thanks!

@keshavdv
Copy link
Copy Markdown
Contributor Author

Done and merged master to fix the conflicts.

asher added a commit that referenced this pull request Aug 27, 2015
Allow a list of servers to be passed in to the client
@asher asher merged commit 9dfc8dd into asher:master Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants