Look like the release after .300 had OS_TYPES renamed to _OS_TYPES in
FullVirtGuest.py creating this error for virt-convert
['(VMDK) image open: flags=0x2
filename=/home/jboggs/vmware/OSX/OSX-0.vmdk\n']
ERROR type object 'FullVirtGuest' has no attribute 'OS_TYPES'
Traceback (most recent call last):
File "/usr/bin/virt-convert", line 252, in <module>
main()
File "/usr/bin/virt-convert", line 242, in main
outp.export_file(vmdef, options.output_file)
File "/usr/lib/python2.5/site-packages/virtconv/parsers/virtimage.py",
line 225, in export_file
acpi, apic = export_os_params(vm)
File "/usr/lib/python2.5/site-packages/virtconv/parsers/virtimage.py",
line 86, in export_os_params
ostype = fv.OS_TYPES.get(vm.os_type)
AttributeError: type object 'FullVirtGuest' has no attribute 'OS_TYPES'
diff -r a7b8fb0b1f9d virtconv/parsers/virtimage.py
--- a/virtconv/parsers/virtimage.py Wed Sep 10 15:34:18 2008 -0400
+++ b/virtconv/parsers/virtimage.py Fri Sep 12 14:13:52 2008 -0400
@@ -83,7 +83,7 @@
ostype = None
osvariant = None
- ostype = fv.OS_TYPES.get(vm.os_type)
+ ostype = fv._OS_TYPES.get(vm.os_type)
if ostype:
osvariant = ostype.variants.get(vm.os_variant)
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools