ReadPreference is changed from a string to a number by the URI parser

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.5
    • Affects Version/s: None
    • Component/s: Config
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket tracks this pull request https://github.com/mongodb/mongo-python-driver/pull/325

      For some reason validate_read_preference_mode returns value, that is not valid to be validated again. This PR fixes this problem and allows `MongoClient` options could be parsed outside of it and passed as keyword arguments like celery mongo backend does it.

              Assignee:
              Shane Harvey
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: