virtconv: Drop reference to OS_TYPES

This commit is contained in:
Cole Robinson 2013-08-10 15:42:09 -04:00
parent f1bf4c7188
commit 1d0695abd2

View File

@ -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)