Merge "simplify swift report"

This commit is contained in:
Jenkins 2017-03-08 16:57:51 +00:00 committed by Gerrit Code Review
commit 1e1428cbd6

View File

@ -43,12 +43,10 @@ class SwiftStorage(_carbonara.CarbonaraBasedStorage):
if details:
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
full_listing=True)
metrics = set()
for f in files:
metric, metric_files = f['name'].split("/", 1)
metric, __ = f['name'].split("/", 1)
metric_details[metric] += 1
metrics.add(metric)
nb_metrics = len(metrics)
nb_metrics = len(metric_details)
else:
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
delimiter='/',