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:
Cole Robinson
2020-01-24 12:09:23 -05:00
parent 670e2fe11a
commit 1aff5a611e
7 changed files with 28 additions and 62 deletions

View File

@@ -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."))