virt-manager/c5ce0ab5-connection-fix-transport-detection.patch
Charles Arnold b27495e815 e69cc002-spice-catch-failure-to-setup-usbdev-manager.patch
c5ce0ab5-connection-fix-transport-detection.patch
  6daff68a-fix-italian-lang-file.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=323
2016-06-29 17:00:52 +00:00

24 lines
940 B
Diff

Subject: connection: Fix transport detection for qemu://$HOST/system
From: Cole Robinson crobinso@redhat.com Tue Jun 21 11:31:26 2016 -0400
Date: Tue Jun 21 11:31:26 2016 -0400:
Git: c5ce0ab512b0d8a3045b9d09329648559f825b86
In this case, when a host is specified but not a transport, libvirt
defaults to transport=tls
diff --git a/virtinst/connection.py b/virtinst/connection.py
index a09f4df..2efc3eb 100644
--- a/virtinst/connection.py
+++ b/virtinst/connection.py
@@ -355,6 +355,10 @@ class VirtualConnection(object):
def get_uri_username(self):
return self._uriobj.username
def get_uri_transport(self):
+ if self.get_uri_hostname() and not self._uriobj.transport:
+ # Libvirt defaults to transport=tls if hostname specified but
+ # no transport is specified
+ return "tls"
return self._uriobj.transport
def get_uri_path(self):
return self._uriobj.path