Merge "Displays container specific information in freezer"

This commit is contained in:
Zuul 2018-04-18 09:32:23 +00:00 committed by Gerrit Code Review
commit fde44b583f
1 changed files with 8 additions and 0 deletions

View File

@ -94,12 +94,20 @@ class InfoJob(Job):
fields = ["Container", "Size", "Object Count"]
data = []
for container in info:
if self.conf.container:
container_name = container.get('container_name')
if container_name != self.conf.container:
continue
values = [
container.get('container_name'),
container.get('size'),
container.get('objects_count')
]
data.append(values)
if self.conf.container:
break # values for given container were found
return [fields, data]