Deprecate /v1/report/total endpoint
Change-Id: I559304c6da7b78e83821a7d164cc12faf2e7194c Task: 6586 Story: 2001612
This commit is contained in:
parent
acf1978421
commit
ae1a473dc7
@ -18,6 +18,7 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import decimal
|
import decimal
|
||||||
|
|
||||||
|
from oslo_log import log as logging
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import rest
|
from pecan import rest
|
||||||
from wsme import types as wtypes
|
from wsme import types as wtypes
|
||||||
@ -28,6 +29,9 @@ from cloudkitty.common import policy
|
|||||||
from cloudkitty import utils as ck_utils
|
from cloudkitty import utils as ck_utils
|
||||||
|
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class ReportController(rest.RestController):
|
class ReportController(rest.RestController):
|
||||||
"""REST Controller managing the reporting.
|
"""REST Controller managing the reporting.
|
||||||
|
|
||||||
@ -68,6 +72,8 @@ class ReportController(rest.RestController):
|
|||||||
"""Return the amount to pay for a given period.
|
"""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:
|
if not begin:
|
||||||
begin = ck_utils.get_month_start()
|
begin = ck_utils.get_month_start()
|
||||||
if not end:
|
if not end:
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The /v1/report/total route has been deprecated. /v1/report/summary should
|
||||||
|
be used instead.
|
Loading…
Reference in New Issue
Block a user