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 10-30-2008, 11:54 AM
Guido GŁnther
 
Default virtinst: fix --disk option parsing error message

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
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 10-30-2008, 08:18 PM
Cole Robinson
 
Default virtinst: fix --disk option parsing error message

Guido GŁnther wrote:
> 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
>

Applied, thanks:

http://hg.et.redhat.com/virt/applications/virtinst--devel?cs=fef7dd673020

- 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 03:51 PM.

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