From 400e1b7c35a1db4cdcf20f4453631bc0888a330f Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Wed, 15 Aug 2018 06:11:24 +0000 Subject: API upgrading for OPENOAPI Change-Id: I8d0fdc7671d9333ee24e77dda9e07c32a0767950 Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang --- windriver/titanium_cloud/resource/views/capacity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'windriver/titanium_cloud/resource/views') diff --git a/windriver/titanium_cloud/resource/views/capacity.py b/windriver/titanium_cloud/resource/views/capacity.py index 26a673c0..74470ca2 100644 --- a/windriver/titanium_cloud/resource/views/capacity.py +++ b/windriver/titanium_cloud/resource/views/capacity.py @@ -142,7 +142,7 @@ class CapacityCheck(APIView): -class CapacityCheckV1(APIView): +class APIv1CapacityCheck(APIView): def __init__(self): self._logger = logger @@ -152,4 +152,5 @@ class CapacityCheckV1(APIView): self._logger.debug("META> %s" % request.META) vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id) - return super(CapacityCheckV1, self).post(request, vimid) + return super(APIv1CapacityCheck, self).post(request, vimid) + -- cgit 1.2.3-korg