'Get the replicas.'

def _get_replicas(self, volume, metadata):

    try:
        ref_targets = self._get_volume_metadata_value(metadata, 'reflection_targets')
        if (ref_targets is not None):
            replicas = MAX_REPLICAS
        else:
            replicas = DEFAULT_REPLICAS
    except Exception:
        LOG.exception('Exception    in    getting    reflection    targets')
        replicas = DEFAULT_REPLICAS
    LOG.debug('Number    of    replicas:    %s', replicas)
    return replicas
