# HG changeset patch
# User John Levon <[email protected]>
# Date 1234463799 28800
# Node ID d8c2fc154a87724c4b9ed04a61e8a4f211b30b46
# Parent  e89c559da3ff95fa3ce52e55233023e25e05752a
Fix virt-convert osdict usage

Signed-off-by: John Levon <[email protected]>

diff --git a/virtconv/parsers/virtimage.py b/virtconv/parsers/virtimage.py
--- a/virtconv/parsers/virtimage.py
+++ b/virtconv/parsers/virtimage.py
@@ -88,7 +88,7 @@ def export_os_params(vm):
     # ImageParser?) should handle this info
     ostype = fv._OS_TYPES.get(vm.os_type)
     if ostype:
-        osvariant = ostype.variants.get(vm.os_variant)
+        osvariant = ostype.get('variants').get(vm.os_variant)
 
     def get_os_val(key, default):
         val = None

_______________________________________________
et-mgmt-tools mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Reply via email to