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

Commit d911c2f

Browse files
committed
virt-install: Fix passwordvalidto, add docs
1 parent 886e70a commit d911c2f

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

man/en/virt-install.pod.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,16 @@ by 'vnc'
626626

627627
Request a VNC password, required at connection time. Beware, this info may
628628
end up in virt-install log files, so don't use an important password. This
629-
is used by 'vnc'
629+
is used by 'vnc' and 'spice'
630+
631+
=item B<passwordvalidto>
632+
633+
Set an expiration date for password. After the date/time has passed,
634+
all new graphical connections are denyed until a new password is set.
635+
This is used by 'vnc' and 'spice'
636+
637+
The format for this value is YYYY-MM-DDTHH:MM:SS, for example
638+
2011-04-01T14:30:15
630639

631640
=back
632641

virtinst/VirtualGraphics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ def _get_xml_config(self):
274274
if self.keymap:
275275
keymapxml = " keymap='%s'" % self.keymap
276276
if self.listen:
277-
listenxml = " listen='%s'" % self._listen
277+
listenxml = " listen='%s'" % self.listen
278278
if self.passwd:
279-
passwdxml = " passwd='%s'" % self._passwd
279+
passwdxml = " passwd='%s'" % self.passwd
280280
if self.passwdValidTo:
281-
passwdValidToxml = " passwdValidTo='%s'" % self._passwd
281+
passwdValidToxml = " passwdValidTo='%s'" % self.passwdValidTo
282282

283283
xml = " <graphics type='%(type)s' " % { "type" : self._type } + \
284284
"port='%(port)d'" % { "port" : self._port } + \

0 commit comments

Comments
 (0)