mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
create: allow users to select a type without variant
The check made in get_config_os_info fails anytime a variant is not found, making impossible to choose Generic. Change it to not fail if the OS was found. commit 33a2d1a1c8eece3c55dd69aed1e7d4018b3d15aa broke this. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
99df0057f5
commit
be63db61ad
@ -987,14 +987,16 @@ class vmmCreate(vmmGObjectUI):
|
||||
distro = None
|
||||
dlabel = None
|
||||
variant = None
|
||||
variant_found = False
|
||||
vlabel = self.widget("install-os-version-entry").get_text()
|
||||
|
||||
for i in self.widget("install-os-version").get_model():
|
||||
if not i[2] and not i[3] and i[1] == vlabel:
|
||||
variant = i[0]
|
||||
variant_found = True
|
||||
break
|
||||
|
||||
if vlabel and not variant:
|
||||
if vlabel and not variant_found:
|
||||
return (None, None, False, None, None)
|
||||
|
||||
if drow:
|
||||
|
Loading…
x
Reference in New Issue
Block a user