def attach_volume_to_instance(self, volume_info):
        if 'instance' in volume_info[utils.META_INFO]:
            if volume_info[utils.META_INFO]['instance']:
                self.attach_volume(
                    volume_info[utils.VOLUME_BODY]['id'],
                    volume_info[utils.META_INFO]['instance']['instance']['id'],
                    volume_info[utils.VOLUME_BODY]['device'])
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/storage/cinder_storage.py/CinderStorage.attach_volume_to_instance/original