mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtconv: Drop reference to OS_TYPES
This commit is contained in:
parent
f1bf4c7188
commit
1d0695abd2
@ -85,7 +85,8 @@ def export_os_params(vm):
|
||||
ostype = None
|
||||
osvariant = None
|
||||
|
||||
ostype = Guest._OS_TYPES.get(vm.os_type) # pylint: disable=W0212
|
||||
from virtinst import osdict
|
||||
ostype = osdict.OS_TYPES.get(vm.os_type)
|
||||
if ostype:
|
||||
osvariant = ostype.get('variants').get(vm.os_variant)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user