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:
Cyril Roelandt 2013-07-31 14:27:05 +00:00
parent ede3cc0a70
commit 72b6a15bdc

View File

@ -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: