'Get a replication target from known replication targets.'

def _get_target_config(self, target_id):

    for target in self._replication_targets:
        if (target['name'] == target_id):
            return target
    if ((not target_id) or (target_id == 'default')):
        return {'name': self.configuration.rbd_cluster_name, 'conf': self.configuration.rbd_ceph_conf, 'user': self.configuration.rbd_user}
    raise exception.InvalidReplicationTarget(reason=(_('RBD:    Unknown    failover    target    host    %s.') % target_id))
