[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



# HG changeset patch
# User Marc-André Lureau <marcandre lureau 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]