diff --git a/cloudkitty/api/v1/controllers/report.py b/cloudkitty/api/v1/controllers/report.py index 96efb973..ec06d1c8 100644 --- a/cloudkitty/api/v1/controllers/report.py +++ b/cloudkitty/api/v1/controllers/report.py @@ -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')