Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2476

Check server type is Standalone

    • Type: Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Please add the way to check ServerType without using _private methods.

      E.g. I need to check server type is Standalone or not.

      Now it looks like:

       

      client._server_property('server_type') == SERVER_TYPE.Standalone

       

      But it's not good to user _private methods.

      Please make something like your `is_mongos` property

       

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            oleg@truemafia.ru Oleg Abramov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: