def filter_volumes(self):
        volumes = config.cinder_volumes
        for tenant in config.tenants:
            if 'cinder_volumes' in tenant and not tenant.get('deleted'):
                volumes.extend(tenant['cinder_volumes'])
        volumes.extend(config.cinder_volumes_from_images)
        volumes_names = [volume.get('display_name') for volume in volumes]
        opts = {'search_opts': {'all_tenants': 1}}
        return [i for i in self.src_cloud.cinderclient.volumes.list(**opts)
                if i.display_name in volumes_names]
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/functional_test.py/FunctionalTest.filter_volumes/original