'Create or connect to all virtual disks for this instance.'

def _get_vdis_for_instance(self, context, instance, name_label, image_meta, image_type, block_device_info):

    vdis = self._connect_cinder_volumes(instance, block_device_info)
    if ('root' not in vdis):
        create_image_vdis = vm_utils.create_image(context, self._session, instance, name_label, image_meta.id, image_type)
        vdis.update(create_image_vdis)
    for vdi in six.itervalues(vdis):
        vdi['ref'] = self._session.call_xenapi('VDI.get_by_uuid', vdi['uuid'])
    return vdis
