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

[et-mgmt-tools] [PATCH] Fix virt-convert osdict usage



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

Signed-off-by: John Levon <john levon sun com>

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


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