def belongs_to_instance_legacy(disk):
    pattern = ('%s_' % instance['name'])
    if disk.startswith(pattern):
        if (CONF.instance_name_template == 'instance-%08x'):
            return True
        else:
            LOG.warn(_LW('Volume %(disk)s possibly unsafe to remove, please clean up manually'), {'disk': disk})
    return False
def belongs_to_instance_legacy(disk):
    pattern = ('%s_' % instance['name'])
    if disk.startswith(pattern):
        if (CONF.instance_name_template == 'instance-%08x'):
            return True
        else:
            LOG.warn(_LW('Volume %(disk)s possibly unsafe to remove, please clean up manually'), {'disk': disk})
    return False