def get_member_rs_status(self):
        rs_status =  self.get_rs_status()
        if rs_status:
            try:
                for member in rs_status['members']:
                    if member in 'self' and member['self']:
                        return member
            except (Exception,RuntimeError), e:
                log_debug("Cannot get member rs status from server '%s'."
                          " cause: %s" % (self.id, e))
                log_exception(e)

                return None

    ###########################################################################
dataset/ETHPy150Open mongolab/mongoctl/mongoctl/objects/mongod.py/MongodServer.get_member_rs_status/swapped operands of `in`