'Return true if the host can migrate a volume locally.'

def _can_migrate_locally(self, host):

    if ('location_info' not in host['capabilities']):
        LOG.debug('Evaluate    migration:    no    location    info,    cannot    migrate    locally.')
        return None
    info = host['capabilities']['location_info']
    try:
        (dest_type, dest_id, dest_path) = info.split(':')
    except ValueError:
        LOG.debug('Evaluate    migration:    unexpected    location    info,    cannot    migrate    locally:    %s.', info)
        return None
    if ((dest_id != self._cluster_id) or (dest_type not in MIGRATION_ALLOWED_DEST_TYPE)):
        LOG.debug('Evaluate    migration:    different    destination    driver    or    cluster    id    in    location    info:    %s.', info)
        return None
    LOG.debug('Evaluate    migration:    use    local    migration.')
    return dest_path
