updated how to fetch metdata on container

This commit is contained in:
John Dickinson 2015-02-12 15:19:23 -08:00
parent 7fea6b2903
commit 620222bdb7
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class ContainerStatsCollector(DatabaseStatsCollector):
info['object_count'], info['bytes_used'])
if self.metadata_keys:
metadata_results = ','.join(
[info['metadata'].get(mkey) and '1' or ''
[broker.metadata.get(mkey) and '1' or ''
for mkey in self.metadata_keys])
line_data += ',%s' % metadata_results
line_data += '\n'