'If LD has migrate_status, get LD name from source LD UUID.'

def _convert_id2name_in_migrate(self, volume):

    LOG.debug('migration_status:%s', volume.migration_status)
    migstat = volume.migration_status
    if ((migstat is not None) and ('target:' in migstat)):
        index = migstat.find('target:')
        if (index != (-1)):
            migstat = migstat[len('target:'):]
        ldname = self.get_ldname(migstat, self._properties['ld_name_format'])
    else:
        ldname = self.get_ldname(volume.id, self._properties['ld_name_format'])
    LOG.debug('ldname=%s.', ldname)
    return ldname
