Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit b77e638

Browse files
committed
graphics: tls port should be -1 when undefined
1 parent c945616 commit b77e638

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virtinst/VirtualGraphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def set_tlsPort(self, val):
225225
"5900 and 65535, or -1 for auto allocation"))
226226
self._tlsPort = val
227227
tlsPort = _xml_property(get_tlsPort, set_tlsPort,
228-
get_converter=lambda s, x: int(x),
228+
get_converter=lambda s, x: int(x or -1),
229229
xpath="./@tlsPort")
230230

231231
channel_main_mode = _get_mode_prop(CHANNEL_TYPE_MAIN)

0 commit comments

Comments
 (0)