Check server type is Standalone

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
            Reporter:
            Oleg Abramov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: