Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit e848b19

Browse files
committed
Set os_type for installer to fix test suite
1 parent e59b1ac commit e848b19

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

virtinst/FullVirtGuest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def get_os_variant_label(type, variant):
115115

116116
def __init__(self, type=None, arch=None, connection=None, hypervisorURI=None, emulator=None, installer=None):
117117
if not installer:
118-
installer = DistroManager.DistroInstaller(type = type)
118+
installer = DistroManager.DistroInstaller(type = type, os_type = "hvm")
119119
Guest.Guest.__init__(self, type, connection, hypervisorURI, installer)
120120
self.disknode = "hd"
121121
self.features = { "acpi": None, "pae": util.is_pae_capable(), "apic": None }

virtinst/ParaVirtGuest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class ParaVirtGuest(Guest.XenGuest):
2929
def __init__(self, type=None, connection=None, hypervisorURI=None, installer=None):
3030
if not installer:
31-
installer = DistroManager.DistroInstaller(type = type)
31+
installer = DistroManager.DistroInstaller(type = type, os_type = "linux")
3232
Guest.Guest.__init__(self, type, connection, hypervisorURI, installer)
3333
if self.type == "xen":
3434
self.disknode = "xvd"

0 commit comments

Comments
 (0)