From 1d0695abd2413d6acfbb817753d5dc8080e81d61 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 10 Aug 2013 15:42:09 -0400 Subject: [PATCH] virtconv: Drop reference to OS_TYPES --- virtconv/parsers/virtimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtconv/parsers/virtimage.py b/virtconv/parsers/virtimage.py index 19ac9f6ad..1ec81a115 100644 --- a/virtconv/parsers/virtimage.py +++ b/virtconv/parsers/virtimage.py @@ -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)