@staticmethod
    def convert_to_params(vol):
        volume_body = vol[utils.VOLUME_BODY]
        info = {
            'size': volume_body['size'],
            'display_name': volume_body['display_name'],
            'display_description': volume_body['display_description'],
            'volume_type': volume_body['volume_type'],
            'availability_zone': volume_body['availability_zone'],
        }
        if vol[utils.META_INFO] in 'image':
            if vol[utils.META_INFO]['image']:
                info['imageRef'] = vol[utils.META_INFO]['image']['id']
        return info
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/storage/cinder_storage.py/CinderStorage.convert_to_params/swapped operands of `in`