virtinst: remove unnecessary autoport when listen=none

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-02-21 17:00:57 +04:00 committed by Cole Robinson
parent a5f4b8a57f
commit ae3cc58369
4 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@
<image compression="off"/>
<listen type="socket"/>
</graphics>
<graphics type="spice" autoport="no">
<graphics type="spice">
<gl enable="yes"/>
<image compression="off"/>
<listen type="none"/>

View File

@ -3,7 +3,7 @@
</tpm>
- <graphics type="vnc" port="-1" autoport="yes">
- <listen type="address"/>
+ <graphics type="vnc" autoport="no">
+ <graphics type="vnc">
+ <listen type="none"/>
</graphics>
<sound model="sb16"/>

View File

@ -3,7 +3,7 @@
</tpm>
- <graphics type="vnc" port="-1" autoport="yes">
- <listen type="address"/>
+ <graphics type="spice" autoport="no">
+ <graphics type="spice">
+ <gl enable="yes"/>
+ <listen type="none"/>
</graphics>

View File

@ -228,7 +228,7 @@ class VirtualGraphics(VirtualDevice):
self.remove_all_listens()
self.port = None
self.tlsPort = None
self.autoport = False
self.autoport = None
self.socket = None
if self.conn.check_support(