From 72b6a15bdcfc788ac2d011d628260e790f3060d5 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Wed, 31 Jul 2013 14:27:05 +0000 Subject: [PATCH] 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 --- ceilometer/objectstore/swift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometer/objectstore/swift.py b/ceilometer/objectstore/swift.py index 85e239ef5..3a2778109 100644 --- a/ceilometer/objectstore/swift.py +++ b/ceilometer/objectstore/swift.py @@ -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: