diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-06-07 17:15:10 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-06-07 17:15:10 -0400 |
commit | b34800decd225d7a646a0c699a7c523a5548ef7c (patch) | |
tree | 9a43d13ab0652c5f7c7c1ecf8cdec97e1a331814 /virt-manager | |
parent | 7d17d5d03b9151bf81d8858fba50394aa1077725 (diff) | |
download | virt-manager-b34800decd225d7a646a0c699a7c523a5548ef7c.tar.gz |
util: Move local_libvirt_version to VirtinstConnection
Make it private because we want people to use
conn.local_libvirt_version, and adjust the one other user
Diffstat (limited to 'virt-manager')
-rwxr-xr-x | virt-manager | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt-manager b/virt-manager index 8a5b9e17..8efb98bb 100755 --- a/virt-manager +++ b/virt-manager @@ -17,7 +17,7 @@ import gi gi.require_version('LibvirtGLib', '1.0') from gi.repository import LibvirtGLib -from virtinst import util +from virtinst import VirtinstConnection from virtinst import cli from virtcli import CLIConfig @@ -258,7 +258,7 @@ def main(): Gtk.get_minor_version(), Gtk.get_micro_version()) - if not util.local_libvirt_version() >= 6000: + if not VirtinstConnection.libvirt_new_enough_for_virtmanager(6000): # We need this version for threaded virConnect access _show_startup_error( _("virt-manager requires libvirt 0.6.0 or later."), "") |