Remove cb() function calling pool.refresh, instead use pool.refresh
in vmmAsyncJob
---
virtManager/storagelist.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/virtManager/storagelist.py b/virtManager/storagelist.py
index 8a34e7f..c16cf5c 100644
--- a/virtManager/storagelist.py
+++ b/virtManager/storagelist.py
@@ -654,11 +654,8 @@ class vmmStorageList(vmmGObjectUI):
if pool is None:
return
- def cb():
- pool.refresh()
-
logging.debug("Refresh pool '%s'", pool.get_name())
- vmmAsyncJob.simple_async_noshow(cb, [], self,
+ vmmAsyncJob.simple_async_noshow(pool.refresh, [], self,
_("Error refreshing pool '%s'") % pool.get_name())
def _pool_apply(self):
--
2.5.5
_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list