Add quota.type field when reporting share usage
Adding field "type" will allow correct formatting of reported values in "Overview" panel in Horizon. It will also make the fields consistent with what's available in standard Horizon quotas. Change-Id: Iecfdaddaaf457aea776a5f8f13eaeb02bc741222 Closes-bug: #1717203
This commit is contained in:
parent
f49f885b32
commit
9b012bd879
|
@ -380,6 +380,7 @@ def get_context_data(self, **kwargs):
|
|||
for t in types:
|
||||
if t[0] in self.usage.limits and t[1] in self.usage.limits:
|
||||
context['charts'].append({
|
||||
'type': t[0],
|
||||
'name': t[2],
|
||||
'used': self.usage.limits[t[0]],
|
||||
'max': self.usage.limits[t[1]],
|
||||
|
|
Loading…
Reference in New Issue