[et-mgmt-tools] [PATCH] Fix virt-convert osdict usage
john.levon at sun.com
john.levon at sun.com
Thu Feb 12 18:50:53 UTC 2009
# HG changeset patch
# User John Levon <john.levon at sun.com>
# Date 1234463799 28800
# Node ID d8c2fc154a87724c4b9ed04a61e8a4f211b30b46
# Parent e89c559da3ff95fa3ce52e55233023e25e05752a
Fix virt-convert osdict usage
Signed-off-by: John Levon <john.levon at 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
More information about the et-mgmt-tools
mailing list