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

Commit 8abe73c

Browse files
committed
VirtualGraphics: Fix generating passwdValidTo XML
1 parent b578af5 commit 8abe73c

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/xmlconfig-xml/boot-many-devices.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<graphics type='vnc' port='-1' keymap='en-us'/>
6464
<graphics type='vnc' port='-1'/>
6565
<graphics type='sdl' display=':3.4' xauth='/tmp/.Xauthority'/>
66-
<graphics type='spice' port='-1' tlsPort='-1' autoport='yes' keymap='en-us'/>
66+
<graphics type='spice' port='-1' tlsPort='-1' autoport='yes' keymap='en-us' passwdValidTo='foobar'/>
6767
<graphics type='sdl' display='foodisplay' xauth='fooxauth'/>
6868
<serial type='null'/>
6969
<parallel type='unix'>

tests/xmlconfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ def testManyDevices(self):
795795

796796
gdev3 = virtinst.VirtualGraphics(conn=g.conn, type="sdl")
797797
gdev4 = virtinst.VirtualGraphics(conn=g.conn, type="spice")
798+
gdev4.passwdValidTo = "foobar"
798799

799800
gdev5 = virtinst.VirtualGraphics(conn=g.conn, type="sdl")
800801
gdev5.xauth = "fooxauth"

virtinst/VirtualGraphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def _build_xml(self, port=None, listen=None, keymap=None, passwd=None,
276276
listenxml = (listen and (" listen='%s'" % listen) or "")
277277
passwdxml = (passwd and (" passwd='%s'" % passwd) or "")
278278
passwdValidToxml = (passwdValidTo and
279-
( "passwdValidTo='%s'" % passwdValidTo) or "")
279+
(" passwdValidTo='%s'" % passwdValidTo) or "")
280280

281281
xauthxml = (xauth and (" xauth='%s'" % xauth) or "")
282282
displayxml = (display and (" display='%s'" % display) or "")

0 commit comments

Comments
 (0)