'List replication targets for a group.'

@wsgi.Controller.api_version(GROUP_REPLICATION_API_VERSION)
@wsgi.action('list_replication_targets')
def list_replication_targets(self, req, id, body):

    context = req.environ['cinder.context']
    if body:
        if (not self.is_valid_body(body, 'list_replication_targets')):
            msg = _("Missing    required    element    'list_replication_targets'    in    request    body.")
            raise exc.HTTPBadRequest(explanation=msg)
    LOG.info('List    replication    targets    for    group    with    id:    %s.', id, context=context)
    group = self.group_api.get(context, id)
    replication_targets = self.group_api.list_replication_targets(context, group)
    return replication_targets
