Merge "Fixed None value returned by report/total"

This commit is contained in:
Jenkins
2015-09-16 09:36:09 +00:00
committed by Gerrit Code Review

View File

@@ -62,4 +62,4 @@ class ReportController(rest.RestController):
# Use keystone token information by default but make it overridable and
# enforce it by policy engine
total = storage.get_total(begin, end, tenant_id)
return total
return total if total else decimal.Decimal('0')