'Returns the best vserver destination for EMS messages.'

def _get_ems_log_destination_vserver(self):

    (major, minor) = self.get_ontapi_version(cached=True)
    if ((major > 1) or ((major == 1) and (minor > 15))):
        admin_vservers = self.list_vservers(vserver_type='admin')
        if admin_vservers:
            return admin_vservers[0]
        data_vservers = self.list_vservers(vserver_type='data')
        if data_vservers:
            return data_vservers[0]
    node_vservers = self.list_vservers(vserver_type='node')
    if node_vservers:
        return node_vservers[0]
    raise exception.NotFound('No    Vserver    found    to    receive    EMS    messages.')
