[virt-tools-list] [PATCH] graphics: tls port should be -1 when undefined

Cole Robinson crobinso at redhat.com
Fri Jan 7 21:52:37 UTC 2011


On 01/07/2011 02:51 PM, Marc-André Lureau wrote:
> # HG changeset patch
> # User Marc-André Lureau <marcandre.lureau at redhat.com>
> # Date 1294421618 -3600
> # Node ID 1b630fe29b72b2fc7a41f884a55f1132b19132d4
> # Parent  5e626f06ab802119281546fc9eafae34a7ae7d13
> graphics: tls port should be -1 when undefined
> 
> diff -r 5e626f06ab80 -r 1b630fe29b72 virtinst/VirtualGraphics.py
> --- a/virtinst/VirtualGraphics.py	Fri Dec 17 10:16:14 2010 -0500
> +++ b/virtinst/VirtualGraphics.py	Fri Jan 07 18:33:38 2011 +0100
> @@ -225,7 +225,7 @@
>                                 "5900 and 65535, or -1 for auto allocation"))
>          self._tlsPort = val
>      tlsPort = _xml_property(get_tlsPort, set_tlsPort,
> -                            get_converter=lambda s, x: int(x),
> +                            get_converter=lambda s, x: int(x or -1),
>                              xpath="./@tlsPort")
>  
>      channel_main_mode = _get_mode_prop(CHANNEL_TYPE_MAIN)
> 

Thanks, applied:

http://hg.fedorahosted.org/hg/python-virtinst/rev/1b630fe29b72

I had a similar change locally but forgot to push :)

- Cole




More information about the virt-tools-list mailing list