Merge "Ignore current share's size in extend quota bar" into stable/ocata

This commit is contained in:
Jenkins 2017-03-21 17:14:56 +00:00 committed by Gerrit Code Review
commit 4c77fd9818
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ class ExtendView(forms.ModalFormView):
context['submit_url'] = reverse(self.submit_url, args=args)
try:
context['usages'] = quotas.tenant_limit_usages(self.request)
context['usages']['totalShareGigabytesUsed'] -= int(
self.get_object().size)
except Exception:
exceptions.handle(self.request)