virtinst: clean @listen attribute on listen=none

Clear the obsolete @listen attribute when setting listen to none.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-02-21 17:00:58 +04:00 committed by Cole Robinson
parent ae3cc58369
commit 4c82ff59e8

View File

@ -226,6 +226,7 @@ class VirtualGraphics(VirtualDevice):
def set_listen_none(self):
self.remove_all_listens()
self.listen = None
self.port = None
self.tlsPort = None
self.autoport = None