[PATCH 07/12] virtinst: remove unnecessary autoport when listen=none

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 tests/cli-test-xml/compare/virt-install-many-devices.xml          | 2 +-
 tests/cli-test-xml/compare/virt-xml-edit-graphics-listen-none.xml | 2 +-
 tests/cli-test-xml/compare/virt-xml-edit-graphics-spice-gl.xml    | 2 +-
 virtinst/devicegraphics.py                                        | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/cli-test-xml/compare/virt-install-many-devices.xml b/tests/cli-test-xml/compare/virt-install-many-devices.xml
index baa21141..45010e0e 100644
--- a/tests/cli-test-xml/compare/virt-install-many-devices.xml
+++ b/tests/cli-test-xml/compare/virt-install-many-devices.xml
@@ -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"/>
diff --git a/tests/cli-test-xml/compare/virt-xml-edit-graphics-listen-none.xml b/tests/cli-test-xml/compare/virt-xml-edit-graphics-listen-none.xml
index c86e45b4..539fcb39 100644
--- a/tests/cli-test-xml/compare/virt-xml-edit-graphics-listen-none.xml
+++ b/tests/cli-test-xml/compare/virt-xml-edit-graphics-listen-none.xml
@@ -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"/>
diff --git a/tests/cli-test-xml/compare/virt-xml-edit-graphics-spice-gl.xml b/tests/cli-test-xml/compare/virt-xml-edit-graphics-spice-gl.xml
index 1fef55fb..b748ecb7 100644
--- a/tests/cli-test-xml/compare/virt-xml-edit-graphics-spice-gl.xml
+++ b/tests/cli-test-xml/compare/virt-xml-edit-graphics-spice-gl.xml
@@ -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>
diff --git a/virtinst/devicegraphics.py b/virtinst/devicegraphics.py
index 07b554e8..277a020b 100644
--- a/virtinst/devicegraphics.py
+++ b/virtinst/devicegraphics.py
@@ -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(
-- 
2.11.0.295.gd7dffce1c.dirty

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux