diff options
author | Jovanka Gulicoska <jovanka.gulicoska@gmail.com> | 2016-06-14 23:56:06 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2016-06-14 19:17:06 -0400 |
commit | 053672764f9232a1bb13b5dc361db67adb8f0d4c (patch) | |
tree | 35f5b1594cc94cd8ab615ea0449a19490476d773 | |
parent | 19b4cf026eda54599fbbabc751876da2353419dc (diff) | |
download | virt-manager-053672764f9232a1bb13b5dc361db67adb8f0d4c.tar.gz |
storagelist: code cleanup
Remove cb() function calling pool.refresh, instead use pool.refresh
in vmmAsyncJob
-rw-r--r-- | virtManager/storagelist.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/virtManager/storagelist.py b/virtManager/storagelist.py index 8a34e7f7..c16cf5c5 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): |