mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
More dup_conn fixes.
This commit is contained in:
parent
69b6bea472
commit
8c9bbe1d66
@ -187,12 +187,12 @@ def _dup_all_conn(config, conn, libconn, return_conn_class):
|
||||
if is_test:
|
||||
# Skip duplicating a test conn, since it doesn't maintain state
|
||||
# between instances
|
||||
return conn or vmm
|
||||
return return_conn_class and conn or vmm
|
||||
|
||||
if int(libvirt.getVersion()) >= 6000:
|
||||
# Libvirt 0.6.0 implemented client side request threading: this
|
||||
# removes the need to actually duplicate the connection.
|
||||
return conn or vmm
|
||||
return return_conn_class and conn or vmm
|
||||
|
||||
logging.debug("Duplicating connection for async operation.")
|
||||
newconn = virtManager.connection.vmmConnection(config, uri, is_readonly)
|
||||
|
Loading…
Reference in New Issue
Block a user