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

URI parsing is incorrect #40

Closed
heichwald opened this Issue Apr 23, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@heichwald

heichwald commented Apr 23, 2014

Looks like _ is wrong in the name of the parameters.
print parsed['options'].get('readpreference')
print parsed['options'].get('replicaset')

Gives me values but the code uses replica_set, read_preference which prints None

{'username': None, 'nodelist': [('mongo02', 27017), ('mongo03', 27017)], 'database': 'articles', 'collection': None, 'password': None, 'options': {'readpreference': 2, 'replicaset': 'rs0'}}

thorugh MONGO_URI='mongodb://mongo02,mongo03/articles?replicaSet=rs0&readPreference=secondary'

@dcrosta

This comment has been minimized.

Show comment
Hide comment
@dcrosta

dcrosta May 22, 2017

Owner

Fixed in #86.

Owner

dcrosta commented May 22, 2017

Fixed in #86.

@dcrosta dcrosta closed this May 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment