[virt-manager PATCH 1/3] support: check for virConnect.getStoragePoolCapabilities

Pino Toscano ptoscano at redhat.com
Tue Nov 24 14:21:10 UTC 2020


This will be useful later on; it was introduced in libvirt 5.2.0.

Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
 virtinst/support.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtinst/support.py b/virtinst/support.py
index de73629e..76b8230e 100644
--- a/virtinst/support.py
+++ b/virtinst/support.py
@@ -269,6 +269,8 @@ class SupportCache:
     conn_vnc_none_auth = _make(hv_version={"qemu": "2.9.0"})
     conn_device_boot_order = _make(hv_version={"qemu": 0, "test": 0})
     conn_riscv_virt_pci_default = _make(version="5.3.0", hv_version={"qemu": "4.0.0"})
+    conn_storage_pool_capabilities = _make(
+        function="virConnect.getStoragePoolCapabilities", run_args=(0,))
 
     # We choose qemu 2.11.0 as the first version to target for q35 default.
     # That's not really based on anything except reasonably modern at the
-- 
2.28.0




More information about the virt-tools-list mailing list