@property
    def primary(self):
        if self._doc.get('primary'):
            return common.partition_node(self._doc['primary'])
        else:
            return None
This server's opinion about who the primary is, or None.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/ismaster.py/IsMaster.primary