objectstore: trivial cleanup in _Base
The _iter_accounts() method should use self.CACHE_KEY_HEAD instead of the currently hardcoded "swift.head_account". Change-Id: Ie95e1f2875be3680bb76c209dabd8c91f5d78234
This commit is contained in:
parent
ede3cc0a70
commit
72b6a15bdc
@ -56,7 +56,7 @@ class _Base(plugin.PollsterBase):
|
||||
if self.CACHE_KEY_HEAD not in cache:
|
||||
cache[self.CACHE_KEY_HEAD] = list(self._get_account_info(ksclient,
|
||||
cache))
|
||||
return iter(cache['swift.head_account'])
|
||||
return iter(cache[self.CACHE_KEY_HEAD])
|
||||
|
||||
def _get_account_info(self, ksclient, cache):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user