Blob Blame History Raw
# HG changeset patch
# User "Cole Robinson <crobinso@redhat.com>"
# Date 1221245416 14400
# Node ID 1021d9c89a740b034d20e61bf4f24b68b5ef375f
# Parent  926769542d04ee9965f43b1a38087c4a48a421c7
virt-convert: Fix crash caused by accessing now private os dictionary. (Joey Boggs)

diff -r 926769542d04 -r 1021d9c89a74 virtconv/parsers/virtimage.py
--- a/virtconv/parsers/virtimage.py	Fri Sep 12 14:23:11 2008 -0400
+++ b/virtconv/parsers/virtimage.py	Fri Sep 12 14:50:16 2008 -0400
@@ -83,7 +83,9 @@
     ostype = None
     osvariant = None
 
-    ostype = fv.OS_TYPES.get(vm.os_type)
+    # TODO: Shouldn't be directly using _OS_TYPES here. virt-image libs (
+    # ImageParser?) should handle this info
+    ostype = fv._OS_TYPES.get(vm.os_type)
     if ostype:
         osvariant = ostype.variants.get(vm.os_variant)