FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 02-12-2009, 05:50 PM
 
Default 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

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 02-12-2009, 05:56 PM
Cole Robinson
 
Default Fix virt-convert osdict usage

john.levon@sun.com wrote:
> # 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>
>

Thanks, applied:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virtinst--devel/rev/d8c2fc154a87

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 05:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org