Skip to content
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
Closed

URI parsing is incorrect #40

heichwald opened this issue Apr 23, 2014 · 1 comment

Comments

@heichwald
Copy link

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
Copy link
Owner

dcrosta commented May 22, 2017

Fixed in #86.

@dcrosta dcrosta closed this as completed May 22, 2017
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

No branches or pull requests

2 participants