Use consistant cache key for swift pollster

Change-Id: I7a3a8a7f80d1f6c39ba4da5ccef4122b4badc6ec
This commit is contained in:
Lianhao Lu 2013-10-30 14:01:49 +08:00
parent 6031964de2
commit acc4507e30

View File

@ -67,7 +67,7 @@ class _Base(plugin.PollsterBase):
LOG.debug(_("Swift endpoint not found"))
raise StopIteration()
for t in cache['tenants']:
for t in cache[self.CACHE_KEY_TENANT]:
yield (t.id, swift.head_account(self._neaten_url(endpoint, t.id),
ksclient.auth_token))