mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
connection: Fix transport detection for qemu://$HOST/system
In this case, when a host is specified but not a transport, libvirt defaults to transport=tls
This commit is contained in:
parent
e69cc002b1
commit
c5ce0ab512
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user