mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
connection: Remove is_*_capable wrappers
Call the conn.support check directly. Move the check logging to the initial startup path Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -267,9 +267,9 @@ class vmmHostStorage(vmmGObjectUI):
|
||||
def _refresh_conn_state(self):
|
||||
conn_active = self.conn.is_active()
|
||||
self.widget("pool-add").set_sensitive(conn_active and
|
||||
self.conn.is_storage_capable())
|
||||
self.conn.support.conn_storage())
|
||||
|
||||
if conn_active and not self.conn.is_storage_capable():
|
||||
if conn_active and not self.conn.support.conn_storage():
|
||||
self._set_error_page(
|
||||
_("Libvirt connection does not support storage management."))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user