Merge "Deprecate /v1/report/total endpoint"

This commit is contained in:
Zuul 2018-03-15 03:57:42 +00:00 committed by Gerrit Code Review
commit 542c16598e
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@
import datetime
import decimal
from oslo_log import log as logging
import pecan
from pecan import rest
from wsme import types as wtypes
@ -28,6 +29,9 @@ from cloudkitty.common import policy
from cloudkitty import utils as ck_utils
LOG = logging.getLogger(__name__)
class ReportController(rest.RestController):
"""REST Controller managing the reporting.
@ -68,6 +72,8 @@ class ReportController(rest.RestController):
"""Return the amount to pay for a given period.
"""
LOG.warning('/v1/report/total is deprecated, please use '
'/v1/report/summary instead.')
if not begin:
begin = ck_utils.get_month_start()
if not end:

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The /v1/report/total route has been deprecated. /v1/report/summary should
be used instead.