def unrescue(self, instance, network_info):
    'Reboot the VM which is being rescued back into primary images.\n        '
    instance_dir = libvirt_utils.get_instance_path(instance)
    unrescue_xml_path = os.path.join(instance_dir, 'unrescue.xml')
    xml = libvirt_utils.load_file(unrescue_xml_path)
    virt_dom = self._lookup_by_name(instance.name)
    self._destroy(instance)
    self._create_domain(xml, virt_dom)
    libvirt_utils.file_delete(unrescue_xml_path)
    rescue_files = os.path.join(instance_dir, '*.rescue')
    for rescue_file in glob.iglob(rescue_files):
        libvirt_utils.file_delete(rescue_file)
Reboot the VM which is being rescued back into primary images.
def unrescue(self, instance, network_info):
    '\n        '
    instance_dir = libvirt_utils.get_instance_path(instance)
    unrescue_xml_path = os.path.join(instance_dir, 'unrescue.xml')
    xml = libvirt_utils.load_file(unrescue_xml_path)
    virt_dom = self._lookup_by_name(instance.name)
    self._destroy(instance)
    self._create_domain(xml, virt_dom)
    libvirt_utils.file_delete(unrescue_xml_path)
    rescue_files = os.path.join(instance_dir, '*.rescue')
    for rescue_file in glob.iglob(rescue_files):
        libvirt_utils.file_delete(rescue_file)