mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
Always assume objects support .isActive()
All drivers that support the listAll APIs, which we depend on, also are new enough to support isActive, so stop checking support Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
9a9eb165ed
commit
f22e060190
@ -54,7 +54,7 @@ class vmmNetwork(vmmLibvirtObject):
|
||||
def _using_events(self):
|
||||
return self.conn.using_network_events
|
||||
def _check_supports_isactive(self):
|
||||
return self.conn.support.net_isactive(self._backend)
|
||||
return True
|
||||
def _get_backend_status(self):
|
||||
return self._backend_get_active()
|
||||
|
||||
|
@ -170,7 +170,7 @@ class vmmStoragePool(vmmLibvirtObject):
|
||||
def _using_events(self):
|
||||
return self.conn.using_storage_pool_events
|
||||
def _check_supports_isactive(self):
|
||||
return self.conn.support.pool_isactive(self._backend)
|
||||
return True
|
||||
def _get_backend_status(self):
|
||||
return self._backend_get_active()
|
||||
|
||||
|
@ -307,14 +307,10 @@ class SupportCache:
|
||||
version="1.2.8", hv_version={"qemu": 0})
|
||||
|
||||
# Pool checks
|
||||
pool_isactive = _make(function="virStoragePool.isActive", run_args=())
|
||||
pool_metadata_prealloc = _make(
|
||||
flag="VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA",
|
||||
version="1.0.1")
|
||||
|
||||
# Network checks
|
||||
net_isactive = _make(function="virNetwork.isActive", run_args=())
|
||||
|
||||
|
||||
def _check_version(self, version):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user