From a9d9c0d0354c3e120fded5ec328c1b38784a3381 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 19 Jul 2017 15:56:43 -0400 Subject: connection: rename s/add_new_pool/cache_new_pool/g Better describes exactly what's going on --- virtManager/connection.py | 6 +++--- virtinst/connection.py | 2 +- virtinst/storage.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/virtManager/connection.py b/virtManager/connection.py index 0eead0a8..371ac1d3 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -309,7 +309,7 @@ class vmmConnection(vmmGObject): return ret self._backend.cb_fetch_all_vols = fetch_all_vols - def add_new_pool(obj, key): + def cache_new_pool(obj, key): ignore = obj if not self.is_active(): return @@ -317,7 +317,7 @@ class vmmConnection(vmmGObject): def compare_cb(): return bool(self.get_pool(key)) self._wait_for_condition(compare_cb) - self._backend.cb_add_new_pool = add_new_pool + self._backend.cb_cache_new_pool = cache_new_pool def clear_cache(pools=False): if not pools: @@ -1008,7 +1008,7 @@ class vmmConnection(vmmGObject): self._backend.cb_fetch_all_nodedevs = None self._backend.cb_fetch_all_vols = None self._backend.cb_clear_cache = None - self._backend.cb_add_new_pool = None + self._backend.cb_cache_new_pool = None def open(self): if not self.is_disconnected(): diff --git a/virtinst/connection.py b/virtinst/connection.py index b491054a..323f9cf8 100644 --- a/virtinst/connection.py +++ b/virtinst/connection.py @@ -81,7 +81,7 @@ class VirtualConnection(object): self.cb_fetch_all_vols = None self.cb_fetch_all_nodedevs = None self.cb_clear_cache = None - self.cb_add_new_pool = None + self.cb_cache_new_pool = None ############## diff --git a/virtinst/storage.py b/virtinst/storage.py index c5f1f1a4..a64dc546 100644 --- a/virtinst/storage.py +++ b/virtinst/storage.py @@ -565,8 +565,8 @@ class StoragePool(_StorageObject): "%s" % str(e)) raise RuntimeError(errmsg) - if self.conn.cb_add_new_pool: - self.conn.cb_add_new_pool(pool, self.name) + if self.conn.cb_cache_new_pool: + self.conn.cb_cache_new_pool(pool, self.name) return pool -- cgit v1.2.1