[et-mgmt-tools] [PATCH] virtinst: fix --disk option parsing error message
Guido Günther
agx at sigxcpu.org
Thu Oct 30 12:54:21 UTC 2008
Hi,
the description is far longer than the patch:
ERROR not all arguments converted during string formatting
Traceback (most recent call last):
File "./virt-install", line 715, in <module>
main()
File "./virt-install", line 572, in main
options.sparse, options.nodisks, guest, hvm, conn)
File "./virt-install", line 243, in get_disks
is_file_path), disk, size)
File "./virt-install", line 243, in <lambda>
is_file_path), disk, size)
File "./virt-install", line 188, in get_disk
size, sparse) = parse_disk_option(guest, disk, size)
File "./virt-install", line 139, in parse_disk_option
fail(_("Unknown --disk option '%s'." % opt))
TypeError: not all arguments converted during string formatting
Attached patch makes sure the tuple opt is converted to a string:
ERROR Unknown --disk option '('device', 'disk')'.
-- Guido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-disk-error-msg.diff
Type: text/x-diff
Size: 841 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20081030/0facf48a/attachment.bin>
More information about the et-mgmt-tools
mailing list