[virt-tools-list] [PATCH 08/12] virtinst: clean @listen attribute on listen=none

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Tue Feb 21 13:00:58 UTC 2017


From: Marc-André Lureau <marcandre.lureau at redhat.com>

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

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 virtinst/devicegraphics.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virtinst/devicegraphics.py b/virtinst/devicegraphics.py
index 277a020b..634b6df0 100644
--- a/virtinst/devicegraphics.py
+++ b/virtinst/devicegraphics.py
@@ -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
-- 
2.11.0.295.gd7dffce1c.dirty




More information about the virt-tools-list mailing list