[PATCH] Fix virt-convert osdict usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User John Levon <john.levon@xxxxxxx>
# Date 1234463799 28800
# Node ID d8c2fc154a87724c4b9ed04a61e8a4f211b30b46
# Parent  e89c559da3ff95fa3ce52e55233023e25e05752a
Fix virt-convert osdict usage

Signed-off-by: John Levon <john.levon@xxxxxxx>

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
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux