diff options
Diffstat (limited to 'virtinst/pollhelpers.py')
-rw-r--r-- | virtinst/pollhelpers.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/virtinst/pollhelpers.py b/virtinst/pollhelpers.py index 37087abd..8db2ebb6 100644 --- a/virtinst/pollhelpers.py +++ b/virtinst/pollhelpers.py @@ -102,8 +102,7 @@ def _old_poll_helper(origmap, typename, def fetch_nets(backend, origmap, build_func): name = "network" - if backend.check_support( - backend.SUPPORT_CONN_LISTALLNETWORKS) and not FORCE_OLD_POLL: + if backend.support.conn_listallnetworks() and not FORCE_OLD_POLL: return _new_poll_helper(origmap, name, backend.listAllNetworks, build_func) else: @@ -119,8 +118,7 @@ def fetch_nets(backend, origmap, build_func): def fetch_pools(backend, origmap, build_func): name = "pool" - if backend.check_support( - backend.SUPPORT_CONN_LISTALLSTORAGEPOOLS) and not FORCE_OLD_POLL: + if backend.support.conn_listallstoragepools() and not FORCE_OLD_POLL: return _new_poll_helper(origmap, name, backend.listAllStoragePools, build_func) else: @@ -136,8 +134,7 @@ def fetch_pools(backend, origmap, build_func): def fetch_volumes(backend, pool, origmap, build_func): name = "volume" - if backend.check_support( - backend.SUPPORT_POOL_LISTALLVOLUMES, pool) and not FORCE_OLD_POLL: + if backend.support.pool_listallvolumes(pool) and not FORCE_OLD_POLL: return _new_poll_helper(origmap, name, pool.listAllVolumes, build_func) else: @@ -153,8 +150,7 @@ def fetch_volumes(backend, pool, origmap, build_func): def fetch_interfaces(backend, origmap, build_func): name = "interface" - if backend.check_support( - backend.SUPPORT_CONN_LISTALLINTERFACES) and not FORCE_OLD_POLL: + if backend.support.conn_listallinterfaces() and not FORCE_OLD_POLL: return _new_poll_helper(origmap, name, backend.listAllInterfaces, build_func) else: @@ -169,8 +165,7 @@ def fetch_interfaces(backend, origmap, build_func): def fetch_nodedevs(backend, origmap, build_func): name = "nodedev" - if backend.check_support( - backend.SUPPORT_CONN_LISTALLDEVICES) and not FORCE_OLD_POLL: + if backend.support.conn_listalldevices() and not FORCE_OLD_POLL: return _new_poll_helper(origmap, name, backend.listAllDevices, build_func) else: @@ -265,8 +260,7 @@ def _old_fetch_vms(backend, origmap, build_func): def fetch_vms(backend, origmap, build_func): name = "domain" - if backend.check_support( - backend.SUPPORT_CONN_LISTALLDOMAINS): + if backend.support.conn_listalldomains(): return _new_poll_helper(origmap, name, backend.listAllDomains, build_func) else: |