mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Add base conn object and bump minimum libvirt version to 0.6.0
This base connection object will be used to simplify the API in various places, reduce libvirt API calls, and better share code between virtinst and virt-manager. For now it just centralizes connection opening. This also exposed various places where our handling for older libvirt was busted, so raise our minimum host version to 0.6.0, the first version that supports threaded client requests.
This commit is contained in:
@@ -32,7 +32,6 @@ from virtinst.OSDistro import SLDistro
|
||||
from virtinst.OSDistro import UbuntuDistro
|
||||
from virtinst.OSDistro import MandrivaDistro
|
||||
|
||||
import libvirt
|
||||
import urlgrabber.progress
|
||||
|
||||
# pylint: disable=W0212
|
||||
@@ -224,7 +223,7 @@ urls = {
|
||||
}
|
||||
|
||||
|
||||
testconn = libvirt.open("test:///default")
|
||||
testconn = utils.open_testdefault()
|
||||
testguest = virtinst.Guest(testconn, installer=virtinst.DistroInstaller())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user