'Gather replication information, if provided.'

def _get_replication_info(self):

    self.rep_config = None
    self.replication_targets = None
    if hasattr(self.configuration, 'replication_device'):
        self.rep_devices = self.configuration.safe_get('replication_device')
    if (self.rep_devices and (len(self.rep_devices) == 1)):
        self.rep_config = self.utils.get_replication_config(self.rep_devices)
        if self.rep_config:
            self.replication_targets = [self.rep_config['array']]
            if (self.active_backend_id == self.rep_config['array']):
                self.failover = True
            self.extend_replicated_vol = self.rep_config['allow_extend']
            self.replication_enabled = True
            LOG.debug('The    replication    configuration    is    %(rep_config)s.', {'rep_config': self.rep_config})
    elif (self.rep_devices and (len(self.rep_devices) > 1)):
        LOG.error('More    than    one    replication    target    is    configured.    Dell    EMC    VMAX    only    suppports    a    single    replication    target.    Replication    will    not    be    enabled.')
